summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2004-08-02Fix not-quite-right Assertion. Did not work at all in extended-queryTom Lane
mode (per complaint from Kris Jurka) and it was only by chance that it didn't fail in simple-query mode. A COMMIT or ROLLBACK has to be executed by a portal, therefore it's wrong to suppose that there aren't any live portals at CleanupTransaction time.
2004-08-02Actually, there's no need to use pg_strcasecmp for checking exceptionTom Lane
names, because the name we got from the lexer is already downcased. Just store the table in lower case and use strcmp ...
2004-08-02While perusing SQL92 I realized that we are delivering the wrong SQLSTATETom Lane
error code for string-too-long errors. It should be STRING_DATA_RIGHT_TRUNCATION not STRING_DATA_LENGTH_MISMATCH. The latter probably should only be applied to cases where a string must be exactly so many bits --- there are no cases at all where it applies to character strings, only bit strings.
2004-08-02Translation updatesPeter Eisentraut
2004-08-02Translation updatePeter Eisentraut
2004-08-02Mark savepoints as supported.Bruce Momjian
2004-08-02Readd pg_config --pgxs code.Bruce Momjian
2004-08-02Support USING INDEX TABLESPACE clause for PRIMARY KEY and UNIQUETom Lane
constraints. Christopher Kings-Lynne.
2004-08-02Allow DECLARE CURSOR to take parameters from the portal in which it isTom Lane
executed. Previously, the DECLARE would succeed but subsequent FETCHes would fail since the parameter values supplied to DECLARE were not propagated to the portal created for the cursor. In support of this, add type Oids to ParamListInfo entries, which seems like a good idea anyway since code that extracts a value can double-check that it got the type of value it was expecting. Oliver Jowett, with minor editorialization by Tom Lane.
2004-08-01Update the in-code documentation about the transaction system. Move itTom Lane
into a README file instead of being in xact.c's header comment. Alvaro Herrera.
2004-08-01Cause ALTER OWNER commands to update the object's ACL, replacing referencesTom Lane
to the old owner with the new owner. This is not necessarily right, but it's sure a lot more likely to be what the user wants than doing nothing. Christopher Kings-Lynne, some rework by Tom Lane.
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.