summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2003-10-04Translation updatePeter Eisentraut
2003-10-04Fix log_duration and log_min_duration_statement to print properly, asBruce Momjian
pointed out by Peter.
2003-10-04Translation updatesPeter Eisentraut
2003-10-04Format help message internally consistent.Peter Eisentraut
2003-10-04Change transaction status indicator in prompt from %T to %x.Peter Eisentraut
2003-10-03New translationPeter Eisentraut
2003-10-03Issue 'SET check_function_bodies = false' to suppress possible restoreTom Lane
failures in SQL functions, due to forward references or unqualified references to objects in other schemas. Per recent discussion.
2003-10-03Add GUC parameter check_function_bodies to control whether validationTom Lane
of function bodies is done at CREATE FUNCTION time. This is normally true but can be set false to avoid problems with forward references, wrong schema search path, etc. This is just the backend patch, still need to adjust pg_dump to make use of it.
2003-10-03Cause PQescapeString to stop processing at a null character, ratherTom Lane
than generating an invalid output string. Per observation and patch from Igor Shevchenko. Further code cleanup and documentation by Tom Lane.
2003-10-03Remove assorted compilation failures introduced by latest ecpg changes.Tom Lane
Also remove -g, which has no business in CPPFLAGS in the first place, let alone being hardwired there by a sub-Makefile.
2003-10-03Hide Informix datatypes. They are not seen by our built process anymore.Michael Meskes
2003-10-02Add a bit more locking to vac_update_relstats and vac_update_dbstatsTom Lane
to make them comparable to what UpdateStats does in the same situation. I'm not certain two instances of vac_update_relstats could run in parallel for the same relation, but parallel invocations of vac_update_dbstats do seem possible.
2003-10-02When dumping CREATE INDEX, must show opclass name if the opclass isn'tTom Lane
in the schema search path. Otherwise pg_dump doesn't correctly dump scenarios where a custom opclass is created in 'public' and then used by indexes in other schemas.
2003-10-02Do not return from PQrequestCancel until postmaster has finishedTom Lane
processing the request; this ensures that the request won't be taken to cancel a subsequently-issued query. Race condition originally noted by Oliver Jowett in the context of JDBC, but libpq has it too.
2003-10-02Don't use 0 as a spelling of NULL.Tom Lane
2003-10-02Add documentation about \pset footer to \?.Peter Eisentraut
from Patrick Welche
2003-10-02String fixes/improvements found by Alvaro HerreraPeter Eisentraut
2003-10-02Change some notices to warnings and vice versa according to criteriaPeter Eisentraut
developed on -hackers.
2003-10-02Remove NOTICE about foreign key creating implicit triggers, because it noPeter Eisentraut
longer conveys useful information.
2003-10-01Add code to check that IF/WHILE/EXIT test expressions are boolean,Tom Lane
and try to coerce the values to boolean if not. Per recent discussions.
2003-10-01Repair RI trigger visibility problems (this time for sure ;-)) per recentTom Lane
discussion on pgsql-hackers: in READ COMMITTED mode we just have to force a QuerySnapshot update in the trigger, but in SERIALIZABLE mode we have to run the scan under a current snapshot and then complain if any rows would be updated/deleted that are not visible in the transaction snapshot.
2003-09-30heap_open => relation_open to avoid unwanted restriction on relkind.Tom Lane
Per gripe from Gaetano Mendola.
2003-09-29Adjust btree index build procedure so that the btree metapage looksTom Lane
invalid (has the wrong magic number) until the build is entirely complete. This turns out to cost no additional writes in the normal case, since we were rewriting the metapage at the end of the process anyway. In normal scenarios there's no real gain in security, because a failed index build would roll back the transaction leaving an unused index file, but for rebuilding shared system indexes this seems to add some useful protection.
2003-09-29Improve context display for failures during COPY IN, as recentlyTom Lane
discussed on pghackers.
2003-09-29Fixed type lookup in spi_prepare for possible qualifiedJan Wieck
type name specification. Jan
2003-09-29The brackets aren't put on the CHECK constraints properly.Bruce Momjian
Before patch: test=# select pg_get_constraintdef(oid) from pg_constraint; pg_get_constraintdef ------------------------------------------------------------------------------------------------- CHECK (VALUE >= 0) CHECK ((((a)::text = 'asdf'::text) OR ((a)::text = 'fdsa'::text)) OR ((a)::text = 'dfd'::text)) PRIMARY KEY (b) FOREIGN KEY (a) REFERENCES test2(b) UNIQUE (b) (5 rows) test=# select pg_get_constraintdef(oid, true) from pg_constraint; pg_get_constraintdef ----------------------------------------------------------------------------------- CHECK VALUE >= 0 CHECK a::text = 'asdf'::text OR a::text = 'fdsa'::text OR a::text = 'dfd'::text PRIMARY KEY (b) FOREIGN KEY (a) REFERENCES test2(b) UNIQUE (b) (5 rows) After patch: test=# select pg_get_constraintdef(oid) from pg_constraint; pg_get_constraintdef ------------------------------------------------------------------------------------------------- CHECK (VALUE >= 0) CHECK ((((a)::text = 'asdf'::text) OR ((a)::text = 'fdsa'::text)) OR ((a)::text = 'dfd'::text)) PRIMARY KEY (b) FOREIGN KEY (a) REFERENCES test2(b) UNIQUE (b) (5 rows) test=# select pg_get_constraintdef(oid, true) from pg_constraint; pg_get_constraintdef ----------------------------------------------------------------------------------- CHECK (VALUE >= 0) ` CHECK (a::text = 'asdf'::text OR a::text = 'fdsa'::text OR a::text = 'dfd'::text) PRIMARY KEY (b) FOREIGN KEY (a) REFERENCES test2(b) UNIQUE (b) (5 rows) It's important that those brackets are there to (a) match all other constraints and (b) so that people can just copy and paste them and it will work as SQL. Christopher Kings-Lynne
2003-09-29This patch fixes an obvious bug in the "should I print the duration ofBruce Momjian
this query?" logic in postgres.c Also, make it print "duration:" like log_duration. Neil Conway
2003-09-29I discovered that TupleDescGetAttInMetadata and BuildTupleFromCStringsBruce Momjian
don't deal well with tuples having dropped columns. The attached fixes the issue. Please apply. Joe Conway
2003-09-29> >Bruce Momjian
> > a) Write documentation how the win32 console needs to be set up so that > > psql can handle 8-bit characters. > > Where should it be added? The Section "Installation on Windows" in the > > Administrator's Guide seems natural to me. > > > > b) Add code to psql that prints a warning on startup of psql when the > > console codepage differs from the windows codepage, something like > > > > Warning: Console codepage (850) differs from windows codepage (1252) > > 8-bit characters will not work correctly. See PostgreSQL > > documentation "Installation on Windows" for details. > Attached are two patches: - installdoc.patch contains an additional paragraph on the win32 console codepage for the chapter "Installation on Windows" Due to a lack of SGML-tools, I have only edited the text and not tested the SGML code - please check it before merging into the CVS branch. - psqlcodepage.patch adds the warning about a problematic codepage to psql. Christoph Dalitz
2003-09-29Adjust the new Norwegian translation for some of the easier messagePeter Eisentraut
changes between 7.3 and 7.4, for example quoting and function names.
2003-09-29Apparently, gettext doesn't like double parentheses around argument. WhatPeter Eisentraut
were they doing here anyway?
2003-09-29Make message fit guidelines.Peter Eisentraut
2003-09-29Eliminate another gratuitous message wording difference.Peter Eisentraut
2003-09-29New Norwegian translation by Trond Endrestøl, actually made for 7.3, butPeter Eisentraut
this should help people get started in 7.4 as well.
2003-09-29New translationsPeter Eisentraut
2003-09-29Fix #error message to mention renamed option --disable-spinlocks.Bruce Momjian
2003-09-29Update docs that point to thread test program.Bruce Momjian
2003-09-29Fix broken definition of :print: character class, per Bruno Wolff.Tom Lane
Also, make :alnum: character class directly dependent on isalnum() rather than guessing.
2003-09-29Translation updatePeter Eisentraut
2003-09-29More message editing, some suggested by Alvaro HerreraPeter Eisentraut
2003-09-28Restructure plpgsql's caching of 'simple' expression evaluation treesTom Lane
to be less dangerous, and often faster as well. ExprState trees are not kept across transaction boundaries; this eliminates problems with resource leakage in failed transactions. But by keeping them in a per-transaction EState, we can safely arrange for a single ExprState to be shared by all the expression evaluations done in a given plpgsql function call. (Formerly it seemed necessary to create and destroy an ExprState for each exec_eval_simple_expr() call.) This saves time in any scenario where a plpgsql function executes more than one expression. Seems to be about as fast as 7.3 for simple cases, and significantly faster for functions that do a lot of calculations.
2003-09-28Add a mechanism to let dynamically loaded modules register post-commit/Tom Lane
post-abort cleanup hooks. I'm surprised that we have not needed this already, but I need it now to fix a plpgsql problem, and the usefulness for other dynamically loaded modules seems obvious.
2003-09-28Now that we have UPDATE tab SET col = DEFAULT, get rid of horrid hackTom Lane
in the RI triggers for ON DELETE/UPDATE SET DEFAULT. The code depended way too much on knowledge of plan structure, and yet still would fail if the generated query got rewritten by rules.
2003-09-28Adjust pgindent for newer awks.Bruce Momjian
Nigel J. Andrews
2003-09-28Allow pgindent to work with newer BSD indents.Bruce Momjian
2003-09-27Mark Linux for threads.Bruce Momjian
2003-09-27Remove erroneous restriction that -t cannot be used to select aTom Lane
sequence for dumping.
2003-09-27Update bsd indent patch.Bruce Momjian
2003-09-27Cleanup pgindent patch.Bruce Momjian
2003-09-27Got the link order wrong :-(Tom Lane