summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2004-08-01Add libpgport to postgres.def for Windows build. Per Magnus Hagander.Tom Lane
2004-08-01Translation updates (zh_TW converted to UTF-8)Peter Eisentraut
2004-08-01Error message style adjustments, per Alvaro Herrera.Tom Lane
2004-08-01Some mop-up work for savepoints (nested transactions). Store a smallTom Lane
number of active subtransaction XIDs in each backend's PGPROC entry, and use this to avoid expensive probes into pg_subtrans during TransactionIdIsInProgress. Extend EOXactCallback API to allow add-on modules to get control at subxact start/end. (This is deliberately not compatible with the former API, since any uses of that API probably need manual review anyway.) Add basic reference documentation for SAVEPOINT and related commands. Minor other cleanups to check off some of the open issues for subtransactions. Alvaro Herrera and Tom Lane.
2004-08-01Small pg_config.c cleanup.Bruce Momjian
2004-08-01Add missing file.Bruce Momjian
2004-08-01Create a C version of pg_config.Bruce Momjian
Andrew Dunstan
2004-08-01Minor adjustments for dirmod.c.Bruce Momjian
2004-08-01Add docs for initdb --auth.Bruce Momjian
2004-08-01>I got a new idea on this. I think we should add an initdb option thatBruce Momjian
>takes a string to specify the local authentication method: > > initdb --auth 'ident' > >or whatever the user wants. I think this is more flexible and more >compact. It would default to 'trust', and the packagers could >set it to >whatever they want. If their OS supports local ident, they can use >that. > >Also keep in mind you might want some ident map file: > > initdb --auth 'ident mymap' > >so you would need to allow multiple words in the string. Magnus Hagander
2004-07-31Support "OR condition ..." in plpgsql EXCEPTION clauses to make the syntaxTom Lane
more nearly Oracle-equivalent. Allow matching by category as well as specific error code. Document the set of available condition names (or more accurately, synchronize it with the existing documentation). In passing, update errcodes.sgml to include codes added during 7.5 development.
2004-07-31Be more consistent about reporting SPI errors in the various PLs.Tom Lane
Create a shared function to convert a SPI error code into a string (replacing near-duplicate code in several PLs), and use it anywhere that a SPI function call error is reported.
2004-07-31Escape backslashes from translation message rather than removing them.Bruce Momjian
2004-07-31Still another try at matching system timezone nicely. On non-WindowsTom Lane
machines, break tie scores by preferring shorter zone names over longer; for names of equal length, prefer the alphabetically first name. This yields for example 'EST5EDT' not 'America/New_York' for US eastern time. On Windows, abandon the whole concept of inspecting the detailed behavior of the system TZ library, because it doesn't bear inspection :-(. Instead use a hardwired mapping table to select our zone name based on the result of strftime %Z output. Windows code from Magnus Hagander.
2004-07-31For EXEC_BACKEND case, BootstrapMain needs to recompute paths, same asTom Lane
PostgresMain. Per Magnus Hagander.
2004-07-31Translation updatePeter Eisentraut
2004-07-31plpgsql does exceptions.Tom Lane
There are still some things that need refinement; in particular I fear that the recognized set of error condition names probably has little in common with what Oracle recognizes. But it's a start.
2004-07-31>OK, if you look at the last few commits to interfaces/libpq/win32.mak,Bruce Momjian
>you will see changes for pg_config_paths.h and for thread safety. Can >you look at those changes, merge them into bcc.mak. There might be >other changes in there you want to add to bcc.mak too. > > > OK, having no M$ diff, I attach files src\interfaces\libpq\bcc32.mak and src\interfaces\libpq\win32.h Steve Holdoway
2004-07-31Fix zh_TW.po initdb translation.Bruce Momjian
2004-07-31Restructure error handling as recently discussed. It is now reallyTom Lane
possible to trap an error inside a function rather than letting it propagate out to PostgresMain. You still have to use AbortCurrentTransaction to clean up, but at least the error handling itself will cooperate.
2004-07-30Must guard against NULL return from localtime() when probing pre-1970Tom Lane
dates. Per Magnus Hagander.
2004-07-30PostgreSQL extension makefile framework ("pgxs"), by Fabien Coelho, withPeter Eisentraut
some massaging by Peter Eisentraut. This is basically a simple generalization of the existing contrib makefiles.
2004-07-30Translation updatesPeter Eisentraut
2004-07-29Fix for pg_ctl -o processing. Report from Sean Chittenden.Bruce Momjian
2004-07-29Translation updatePeter Eisentraut
2004-07-28Revert ill-conceived patch that made elog(FATAL) the same as elog(ERROR)Tom Lane
followed by seeing EOF from client. If we want a safe session-kill capability we will need to write one, not break our error handling mechanism.
2004-07-28Fix subtransaction behavior for large objects, temp namespace, files,Tom Lane
password/group files. Also allow read-only subtransactions of a read-write parent, but not vice versa. These are the reasonably noncontroversial parts of Alvaro's recent mop-up patch, plus further work on large objects to minimize use of the TopTransactionResourceOwner.
2004-07-27Replace nested-BEGIN syntax for subtransactions with spec-compliantTom Lane
SAVEPOINT/RELEASE/ROLLBACK-TO syntax. (Alvaro) Cause COMMIT of a failed transaction to report ROLLBACK instead of COMMIT in its command tag. (Tom) Fix a few loose ends in the nested-transactions stuff.
2004-07-27Fix oversight: in case where SIGTERM is received while there areTom Lane
live backends, the archiver and stats processes never got sent a kill signal. They'd eventually exit on their own, but not for awhile, which is a bit annoying when you are trying to replace the executable file on a platform that doesn't allow removal of busy executables. Also, tweak main loop logic so that we will perform the background tasks after select() returns EINTR.
2004-07-26Add some more logging to simplify diagnosis of problems in IDENTTom Lane
authorization. Inspired by problem report from Ian Pilcher.
2004-07-26SQL defines are only used in SQL space in Informix mode.Michael Meskes
2004-07-26Here is a patch that fixes the pipes used in find_other_exec() whenBruce Momjian
running as a service on windows <= 2000. Required to make the pg_ctl service wrapper to work at all. Magnus Hagander
2004-07-25Translation updatesPeter Eisentraut
2004-07-25Improve description of release note creation.Bruce Momjian
2004-07-24Fix obsolete comment.Tom Lane
2004-07-24log_destination should only be PGC_SIGHUP, not PGC_POSTMASTER, as perTom Lane
discussion yesterday. Also a few improvements in the associated documentation.
2004-07-24Add steps for creating release notes.Bruce Momjian
2004-07-23Move Win32 defines from port.h to win32.h.Bruce Momjian
2004-07-22Add cross-check that current timeline of pg_control is an ancestor ofTom Lane
recovery_target_timeline --- otherwise there is no path from the backup to the requested timeline. This check was foreseen in the original discussion but I forgot to implement it.
2004-07-22Add a check on file size as an additional safety check that a WAL fileTom Lane
recovered from archive is not corrupt. It's not much but it will catch one common problem, viz out-of-disk-space. Also, force a WAL recovery scan when recovery.conf is present, even if pg_control shows a clean shutdown. This allows recovery with a tar backup that was taken with the postmaster shut down, as per complaint from Mark Kirkwood.
2004-07-22Still another try at automatically detecting the best match in the zicTom Lane
timezone database for the system behavior we find ourselves in. Scan backwards from current time and choose the zone that matches furthest back. As per discussion a week or so back.
2004-07-22Avoid default: followed by no statement, per Dann Corbit.Tom Lane
2004-07-22Add missing <getopt.h>, per Dann Corbit.Tom Lane
2004-07-21Invent WAL timelines, as per recent discussion, to make point-in-timeTom Lane
recovery more manageable. Also, undo recent change to add FILE_HEADER and WASTED_SPACE records to XLOG; instead make the XLOG page header variable-size with extra fields in the first page of an XLOG file. This should fix the boundary-case bugs observed by Mark Kirkwood. initdb forced due to change of XLOG representation.
2004-07-21The attached patch allows 'select foo()' as well as 'select * fromBruce Momjian
foo()' where foo() is a plperl function that returns a single composite. Andrew Dunstan
2004-07-21The attached patch shows the new column "tablespace" in the mentionedBruce Momjian
views. Klaus Naumann
2004-07-21Back out pg_autovacuum commit after cvs clean failure causes commit.Bruce Momjian
2004-07-21lease find enclosed a patch that matches the PL/Perl documentationBruce Momjian
(fairly closely, I hope) to the current PL/Perl implementation. David Fetter
2004-07-21Allow borland compiles.Bruce Momjian
2004-07-20Fix unused variable when Assert() not used.Bruce Momjian