summaryrefslogtreecommitdiff
path: root/doc/src
AgeCommit message (Collapse)Author
2005-06-13Adjust lo_open() so that specifying INV_READ without INV_WRITE createsTom Lane
a descriptor that uses the current transaction snapshot, rather than SnapshotNow as it did before (and still does if INV_WRITE is set). This means pg_dump will now dump a consistent snapshot of large object contents, as it never could do before. Also, add a lo_create() function that is similar to lo_creat() but allows the desired OID of the large object to be specified. This will simplify pg_restore considerably (but I'll fix that in a separate commit).
2005-06-12Document the --enable-integer-datetimes configure option where the otherTom Lane
configure options are documented. Per Michael Glaesemann.
2005-06-12libpq was not consistently checking for memory allocation failures. ThisNeil Conway
patch adds missing checks to the call sites of malloc(), strdup(), PQmakeEmptyPGresult(), pqResultAlloc(), and pqResultStrdup(), and updates the documentation. Per original report from Volkan Yazici about PQmakeEmptyPGresult() not checking for malloc() failure.
2005-06-10Add space before :DBNAME for proper \set expansion.Bruce Momjian
Andreas Seltenreich
2005-06-10Minor cleanup of documentation for recently-added HISTFILE psql variable.Neil Conway
2005-06-10Implement two new special variables in PL/PgSQL: SQLSTATE and SQLERRM.Neil Conway
These contain the SQLSTATE and error message of the current exception, respectively. They are scope-local variables that are only defined in exception handlers (so attempting to reference them outside an exception handler is an error). Update the regression tests and the documentation. Also, do some minor related cleanup: export an unpack_sql_state() function from the backend and use it to unpack a SQLSTATE into a string, and add a free_var() function to pl_exec.c Original patch from Pavel Stehule, review by Neil Conway.
2005-06-10the following patch makes the filename used to store the readlineBruce Momjian
history customizable through a variable named HISTFILE, analogous to psql's already implemented HISTCONTROL and HISTSIZE variables, and bash's HISTFILE-Variable. The motivation was to be able to get psql to maintain separate histories for separate databases. This is now easily achievable through a line like the following in ~/.psqlrc: \set HISTFILE ~/.psql_history-:DBNAME Andreas Seltenreich
2005-06-10Add the "PGPASSFILE" environment variable to specify to the passwordBruce Momjian
file. Andrew Dunstan
2005-06-09Mention prefix %t has no milliseconds.Bruce Momjian
2005-06-09This patch against 8.0.0beta1 source adds log_line_prefix options forBruce Momjian
millisecond timestamps (%m) and remote host (%h). The milliseconds are useful for QPS measurements. Ed L.
2005-06-09Repair error in description of nonblocking usage of PQgetCopyData().Tom Lane
Per Volkan Yazici.
2005-06-09Add example for pg_config --configure.Peter Eisentraut
2005-06-09Since I needed this feature badly, I added the -n / --schema switch toBruce Momjian
pg_restore. It restores the given schemaname only. It can be used in conjunction with the -t and other switches to make the selection very fine grained. Richard van den Bergg, CISSP
2005-06-09Please find attached a patch (diff -c against cvs HEAD) to add aBruce Momjian
function that accepts a double precision argument assumed to be a Unix epoch timestamp and returns timestamp with time zone, and accompanying documentation. Usage: test=# select to_timestamp(200120400); to_timestamp ------------------------ 1976-05-05 14:00:00+09 (1 row) Michael Glaesemann
2005-06-09I've created a patch which adds support for troff "-ms" output toBruce Momjian
psql. i.e. "\pset format troff-ms". The patch also corrects some problems with the "latex" format, notably defining an extra column in the output table, and correcting some alignment issues; it also changes the output to match the border setting as documented in the manual page and as shown with the "aligned" format. The troff-ms output is mostly identical to the latex output allowing for the differences between the two typesetters. The output should be saved in a file and piped as follows: cat file | tbl | troff -T ps -ms > file.ps or tbl file | troff -T ps -ms > file.ps Because it contains tabs, you'll need to redirect psql output or use "script", rather than pasting from a terminal window, due to the tabs which can be replaced with spaces. Roger Leigh
2005-06-09Remove idea of schema tablespaces:Bruce Momjian
< o Allow databases and schemas to be moved to different tablespaces < < One complexity is whether moving a schema should move all existing < schema objects or just define the location for future object creation. < > o Allow databases to be moved to different tablespaces 484c480 < schema. Global system tables can never be moved. > tablespace. Global system tables can never be moved.
2005-06-08Remove grammar productions for prefix and postfix % and ^ operators,Tom Lane
as well as the existing pg_catalog entries for prefix and postfix %. These have never been documented, though they did appear in one old regression test. This avoids surprising behavior in cases like "SELECT -25 % -10". Per recent discussion. Note: although there is a catalog change here, I did not force initdb since there's no harm in leaving the inaccessible entries in one's copy of pg_operator.
2005-06-08Change WAL-logging scheme for multixacts to be more like regularTom Lane
transaction IDs, rather than like subtrans; in particular, the information now survives a database restart. Per previous discussion, this is essential for PITR log shipping and for 2PC.
2005-06-07Fix word wrap:Bruce Momjian
< changes made by the interface driver for its internal use. One idea is < for this to be a protocol-only feature. Another approach is to notify < the protocol when a RESET CONNECTION command is used. > changes made by the interface driver for its internal use. One idea > is for this to be a protocol-only feature. Another approach is to > notify the protocol when a RESET CONNECTION command is used.
2005-06-07Add a function lastval(), which returns the value returned by theNeil Conway
last nextval() or setval() performed by the current session. Update the docs, add regression tests, and bump the catalog version. Patch from Dennis Björklund, various improvements by Neil Conway.
2005-06-07Add support for an optional INTO clause to PL/PgSQL's EXECUTE command.Neil Conway
This allows the result of executing a SELECT to be assigned to a row variable, record variable, or list of scalars. Docs and regression tests updated. Per Pavel Stehule, improvements and cleanup by Neil Conway.
2005-06-07Update text for RESET CONNECTION:Bruce Momjian
< all temporary tables, removal of any NOTIFYs, cursors, prepared < queries(?), currval()s, etc. This could be used for connection pooling. < We could also change RESET ALL to have this functionality. > temporary tables, removing any NOTIFYs, cursors, open transactions, > prepared queries, currval()s, etc. This could be used for connection > pooling. We could also change RESET ALL to have this functionality. > The difficult of this features is allowing RESET ALL to not affect > changes made by the interface driver for its internal use. One idea is > for this to be a protocol-only feature. Another approach is to notify > the protocol when a RESET CONNECTION command is used.
2005-06-06Add:Bruce Momjian
> * Fix incorrect rtree results due to wrong assumptions about "over" > operator semantics [rtree]
2005-06-06Update Hungarian FAQ and add an HTML version.Bruce Momjian
Laszlo Hornyak
2005-06-06Trivial markup improvement.Tom Lane
2005-06-05Remove planner's private fields from Query struct, and put them intoTom Lane
a new PlannerInfo struct, which is passed around instead of the bare Query in all the planning code. This commit is essentially just a code-beautification exercise, but it does open the door to making larger changes to the planner data structures without having to muck with the widely-known Query struct.
2005-06-05Add description for backend termination:Bruce Momjian
< cleaned up properly. A new signal is needed for safe termination. > cleaned up properly. A new signal is needed for safe termination > because backends must first do a query cancel, then exit once they > have run the query cancel cleanup routine.
2005-06-05Here's a patch to do the following:Bruce Momjian
1. Rename spi_return_next to return_next. 2. Add a new test for return_next. 3. Update the expected output. 4. Update the documentation. Abhijit Menon-Sen
2005-06-05Add TODO.detail for 2phase commit:Bruce Momjian
> * Add two-phase commit [2phase]
2005-06-05Add TODO.detail.Bruce Momjian
< logs > logs [pitr] 130c130 < * Allow a warm standby system to also allow read-only queries > * Allow a warm standby system to also allow read-only queries [pitr]
2005-06-05Add TODO.detail for timezone:Bruce Momjian
< information, either zone name or offset from UTC > information, either zone name or offset from UTC [timezone]
2005-06-04Add TODO.detail:Bruce Momjian
> * Allow major upgrades without dump/reload, perhaps using pg_upgrade > [pg_upgrade]
2005-06-04Add pg_dump to TODO.detail.Bruce Momjian
2005-06-04Allow kerberos name and username case sensitivity to be specified fromBruce Momjian
postgresql.conf. --------------------------------------------------------------------------- Here's an updated version of the patch, with the following changes: 1) No longer uses "service name" as "application version". It's instead hardcoded as "postgres". It could be argued that this part should be backpatched to 8.0, but it doesn't make a big difference until you can start changing it with GUC / connection parameters. This change only affects kerberos 5, not 4. 2) Now downcases kerberos usernames when the client is running on win32. 3) Adds guc option for "krb_caseins_users" to make the server ignore case mismatch which is required by some KDCs such as Active Directory. Off by default, per discussion with Tom. This change only affects kerberos 5, not 4. 4) Updated so it doesn't conflict with the rendevouz/bonjour patch already in ;-) Magnus Hagander
2005-06-04Add:Bruce Momjian
> * Allow pg_ctl to work properly with configuration files located outside > the PGDATA directory > > pg_ctl can not read the pid file because it isn't located in the > config directory but in the PGDATA directory. The solution is to > allow pg_ctl to read and understand postgresql.conf to find the > data_directory value. >
2005-06-04Add description:Bruce Momjian
> > O_DIRECT doesn't have the same media write guarantees as fsync, so it > is in addition to the fsync method, not in place of it. >
2005-06-04Update Chinese FAQ to fix XHTML format.Bruce Momjian
Weiping (Laser)
2005-06-03Remove because it is partly done and we might not want to go farther:Bruce Momjian
< * -Compress WAL entries [wal]
2005-06-03Update Russian FAQ.Bruce Momjian
Viktor Vislobokov
2005-06-03Done:Bruce Momjian
> * -Compress WAL entries [wal]
2005-06-03Done:Bruce Momjian
> * -Change WAL to use 32-bit CRC, for performance reasons
2005-06-02Completed:Bruce Momjian
< o Allow COPY to understand \x as a hex byte > o -Allow COPY to understand \x as a hex byte
2005-06-02Add support for \x hex strings in psql variables.Bruce Momjian
2005-06-02Add support for \x hex escapes in backend strings. Octal was alreadyBruce Momjian
supported. This follows the C standard escapes.
2005-06-02Add support for \x hex escapes in COPY.Bruce Momjian
Sergey Ten
2005-05-31Tab cleanup for SGML.Bruce Momjian
Robert Treat
2005-05-30Document get_call_result_type() and friends; mark TypeGetTupleDesc()Tom Lane
and RelationNameGetTupleDesc() as deprecated; remove uses of the latter in the contrib library. Along the way, clean up crosstab() code and documentation a little.
2005-05-30Move to ALTER section:Bruce Momjian
< * Prevent child tables from altering constraints like CHECK that were < inherited from the parent table 470a469,471 > > o Prevent child tables from altering constraints like CHECK that were > inherited from the parent table
2005-05-30Add:Bruce Momjian
> * Prevent child tables from altering constraints like CHECK that were > inherited from the parent table
2005-05-30Wording improvement (may -> can)Bruce Momjian