aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Fix not-quite-right Assertion. Did not work at all in extended-queryTom Lane2004-08-02
| | | | | | | 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.
* Actually, there's no need to use pg_strcasecmp for checking exceptionTom Lane2004-08-02
| | | | | names, because the name we got from the lexer is already downcased. Just store the table in lower case and use strcmp ...
* While perusing SQL92 I realized that we are delivering the wrong SQLSTATETom Lane2004-08-02
| | | | | | | 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.
* Translation updatesPeter Eisentraut2004-08-02
|
* Translation updatePeter Eisentraut2004-08-02
|
* Mark savepoints as supported.Bruce Momjian2004-08-02
|
* Readd pg_config --pgxs code.Bruce Momjian2004-08-02
|
* Support USING INDEX TABLESPACE clause for PRIMARY KEY and UNIQUETom Lane2004-08-02
| | | | constraints. Christopher Kings-Lynne.
* Allow DECLARE CURSOR to take parameters from the portal in which it isTom Lane2004-08-02
| | | | | | | | | | 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.
* Update the in-code documentation about the transaction system. Move itTom Lane2004-08-01
| | | | | into a README file instead of being in xact.c's header comment. Alvaro Herrera.
* Cause ALTER OWNER commands to update the object's ACL, replacing referencesTom Lane2004-08-01
| | | | | | 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.
* Add libpgport to postgres.def for Windows build. Per Magnus Hagander.Tom Lane2004-08-01
|
* Translation updates (zh_TW converted to UTF-8)Peter Eisentraut2004-08-01
|
* Error message style adjustments, per Alvaro Herrera.Tom Lane2004-08-01
|
* Some mop-up work for savepoints (nested transactions). Store a smallTom Lane2004-08-01
| | | | | | | | | | | | 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.
* Small pg_config.c cleanup.Bruce Momjian2004-08-01
|
* Add missing file.Bruce Momjian2004-08-01
|
* Create a C version of pg_config.Bruce Momjian2004-08-01
| | | | Andrew Dunstan
* Minor adjustments for dirmod.c.Bruce Momjian2004-08-01
|
* Add docs for initdb --auth.Bruce Momjian2004-08-01
|
* >I got a new idea on this. I think we should add an initdb option thatBruce Momjian2004-08-01
| | | | | | | | | | | | | | | | | | | | >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
* Support "OR condition ..." in plpgsql EXCEPTION clauses to make the syntaxTom Lane2004-07-31
| | | | | | | 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.
* Be more consistent about reporting SPI errors in the various PLs.Tom Lane2004-07-31
| | | | | | 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.
* Escape backslashes from translation message rather than removing them.Bruce Momjian2004-07-31
|
* Still another try at matching system timezone nicely. On non-WindowsTom Lane2004-07-31
| | | | | | | | | | 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.
* For EXEC_BACKEND case, BootstrapMain needs to recompute paths, same asTom Lane2004-07-31
| | | | PostgresMain. Per Magnus Hagander.
* Translation updatePeter Eisentraut2004-07-31
|
* plpgsql does exceptions.Tom Lane2004-07-31
| | | | | | 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.
* >OK, if you look at the last few commits to interfaces/libpq/win32.mak,Bruce Momjian2004-07-31
| | | | | | | | | | | | | >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
* Fix zh_TW.po initdb translation.Bruce Momjian2004-07-31
|
* Restructure error handling as recently discussed. It is now reallyTom Lane2004-07-31
| | | | | | 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.
* Must guard against NULL return from localtime() when probing pre-1970Tom Lane2004-07-30
| | | | dates. Per Magnus Hagander.
* PostgreSQL extension makefile framework ("pgxs"), by Fabien Coelho, withPeter Eisentraut2004-07-30
| | | | | some massaging by Peter Eisentraut. This is basically a simple generalization of the existing contrib makefiles.
* Translation updatesPeter Eisentraut2004-07-30
|
* Fix for pg_ctl -o processing. Report from Sean Chittenden.Bruce Momjian2004-07-29
|
* Translation updatePeter Eisentraut2004-07-29
|
* Revert ill-conceived patch that made elog(FATAL) the same as elog(ERROR)Tom Lane2004-07-28
| | | | | | 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.
* Fix subtransaction behavior for large objects, temp namespace, files,Tom Lane2004-07-28
| | | | | | | 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.
* Replace nested-BEGIN syntax for subtransactions with spec-compliantTom Lane2004-07-27
| | | | | | | 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.
* Fix oversight: in case where SIGTERM is received while there areTom Lane2004-07-27
| | | | | | | | | 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.
* Add some more logging to simplify diagnosis of problems in IDENTTom Lane2004-07-26
| | | | authorization. Inspired by problem report from Ian Pilcher.
* SQL defines are only used in SQL space in Informix mode.Michael Meskes2004-07-26
|
* Here is a patch that fixes the pipes used in find_other_exec() whenBruce Momjian2004-07-26
| | | | | | | running as a service on windows <= 2000. Required to make the pg_ctl service wrapper to work at all. Magnus Hagander
* Translation updatesPeter Eisentraut2004-07-25
|
* Improve description of release note creation.Bruce Momjian2004-07-25
|
* Fix obsolete comment.Tom Lane2004-07-24
|
* log_destination should only be PGC_SIGHUP, not PGC_POSTMASTER, as perTom Lane2004-07-24
| | | | | discussion yesterday. Also a few improvements in the associated documentation.
* Add steps for creating release notes.Bruce Momjian2004-07-24
|
* Move Win32 defines from port.h to win32.h.Bruce Momjian2004-07-23
|
* Add cross-check that current timeline of pg_control is an ancestor ofTom Lane2004-07-22
| | | | | | 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.