]> granicus.if.org Git - postgresql/log
postgresql
23 years agoChange position of a check button in multibyte mode.
Hiroshi Inoue [Mon, 29 Oct 2001 02:51:46 +0000 (02:51 +0000)]
Change position of a check button in multibyte mode.

23 years agoAnother pgindent run. Fixes enum indenting, and improves #endif
Bruce Momjian [Sun, 28 Oct 2001 06:26:15 +0000 (06:26 +0000)]
Another pgindent run.  Fixes enum indenting, and improves #endif
spacing.  Also adds space for one-line comments.

23 years agoAdd code to trip trailing newlines in a file.
Bruce Momjian [Sat, 27 Oct 2001 13:54:45 +0000 (13:54 +0000)]
Add code to trip trailing newlines in a file.

23 years agoCorrect fix for indenting.
Bruce Momjian [Sat, 27 Oct 2001 03:31:36 +0000 (03:31 +0000)]
Correct fix for indenting.

23 years agoUpdate WAL configuration discussion to reflect post-7.1 tweaking.
Tom Lane [Fri, 26 Oct 2001 23:10:21 +0000 (23:10 +0000)]
Update WAL configuration discussion to reflect post-7.1 tweaking.
Minor copy-editing.

23 years agoMore cleanup of CREATE FUNCTION examples.
Tom Lane [Fri, 26 Oct 2001 21:17:03 +0000 (21:17 +0000)]
More cleanup of CREATE FUNCTION examples.

23 years agoRemove no-longer-needed dependencies on DLSUFFIX.
Tom Lane [Fri, 26 Oct 2001 20:45:33 +0000 (20:45 +0000)]
Remove no-longer-needed dependencies on DLSUFFIX.

23 years agoEditorial work on xfunc chapter --- better explanations about SQL
Tom Lane [Fri, 26 Oct 2001 19:58:12 +0000 (19:58 +0000)]
Editorial work on xfunc chapter --- better explanations about SQL
functions handling composite types and sets, various minor cleanups.

23 years agoAdjust NR tests. More accurate.
Bruce Momjian [Fri, 26 Oct 2001 17:54:45 +0000 (17:54 +0000)]
Adjust NR tests.  More accurate.

23 years agoAdd code to not indent enum, per Tom Lane.
Bruce Momjian [Fri, 26 Oct 2001 16:21:13 +0000 (16:21 +0000)]
Add code to not indent enum, per Tom Lane.

23 years agoAdd ODBC typedefs.
Bruce Momjian [Fri, 26 Oct 2001 15:42:54 +0000 (15:42 +0000)]
Add ODBC typedefs.

23 years agoUpdate TODO list.
Bruce Momjian [Fri, 26 Oct 2001 15:27:41 +0000 (15:27 +0000)]
Update TODO list.

23 years agoupdates to jdbc documentation for 7.2
Barry Lind [Thu, 25 Oct 2001 22:00:31 +0000 (22:00 +0000)]
updates to jdbc documentation for 7.2

23 years agoRemove 294 reduce/reduce conflicts.
Tom Lane [Thu, 25 Oct 2001 20:56:53 +0000 (20:56 +0000)]
Remove 294 reduce/reduce conflicts.

23 years agoFix a couple of places where lack of parenthesization of a cast
Tom Lane [Thu, 25 Oct 2001 20:37:30 +0000 (20:37 +0000)]
Fix a couple of places where lack of parenthesization of a cast
causes pgindent to make weird formatting decisions.  Easiest fix
seems to be to put in the extra parens...

23 years agoMention pgindent/pgjindent.
Bruce Momjian [Thu, 25 Oct 2001 20:00:58 +0000 (20:00 +0000)]
Mention pgindent/pgjindent.

23 years agoFinal update of HISTORY.
Bruce Momjian [Thu, 25 Oct 2001 19:59:23 +0000 (19:59 +0000)]
Final update of HISTORY.

23 years agoAdd blank line before #endif to #endif's at the end of the file.
Bruce Momjian [Thu, 25 Oct 2001 19:57:03 +0000 (19:57 +0000)]
Add blank line before #endif to #endif's at the end of the file.

23 years agoUpdate TODO list.
Bruce Momjian [Thu, 25 Oct 2001 19:43:53 +0000 (19:43 +0000)]
Update TODO list.

23 years agoAdd slash for comment spacing, for Tom.
Bruce Momjian [Thu, 25 Oct 2001 19:22:05 +0000 (19:22 +0000)]
Add slash for comment spacing, for Tom.

23 years agoAdd comment spaces for trailing ) and comment.
Bruce Momjian [Thu, 25 Oct 2001 18:44:42 +0000 (18:44 +0000)]
Add comment spaces for trailing ) and comment.

23 years agoAdd spacing for single-line comments with trailing semicolon _and_
Bruce Momjian [Thu, 25 Oct 2001 18:25:23 +0000 (18:25 +0000)]
Add spacing for single-line comments with trailing semicolon _and_
comma, per Tom.

23 years agoRemove <> from FAQ_MSWIN, for Vince.
Bruce Momjian [Thu, 25 Oct 2001 16:20:51 +0000 (16:20 +0000)]
Remove <> from FAQ_MSWIN, for Vince.

23 years agoAdd int2-to-int8 and int8-to-int2 conversion routines. Needed to avoid
Tom Lane [Thu, 25 Oct 2001 14:10:07 +0000 (14:10 +0000)]
Add int2-to-int8 and int8-to-int2 conversion routines.  Needed to avoid
breaking existing pg_dump scripts, which try to assign the result of
count(*) to an int2 variable.  catversion bumped.

23 years agoAdd missing output routine for FkConstraint nodes.
Tom Lane [Thu, 25 Oct 2001 14:08:11 +0000 (14:08 +0000)]
Add missing output routine for FkConstraint nodes.

23 years agobmake sure that configure is tags as 7.2b1 now instead of 7.2devel
PostgreSQL Daemon [Thu, 25 Oct 2001 13:02:01 +0000 (13:02 +0000)]
bmake sure that configure is tags as 7.2b1 now instead of 7.2devel

23 years agoCode cleanup. REL7_2_BETA1
Bruce Momjian [Thu, 25 Oct 2001 06:27:56 +0000 (06:27 +0000)]
Code cleanup.

23 years agopgjindent jdbc files. First time jdbc files were formatted.
Bruce Momjian [Thu, 25 Oct 2001 06:00:05 +0000 (06:00 +0000)]
pgjindent jdbc files.  First time jdbc files were formatted.

23 years agopgindent run on all C files. Java run to follow. initdb/regression
Bruce Momjian [Thu, 25 Oct 2001 05:50:21 +0000 (05:50 +0000)]
pgindent run on all C files.  Java run to follow.  initdb/regression
tests pass.

23 years agoUpdate to prevent CATALOG() from wrapping.
Bruce Momjian [Thu, 25 Oct 2001 05:07:56 +0000 (05:07 +0000)]
Update to prevent CATALOG() from wrapping.

23 years agoAdd current typedef symbols to pgindent.
Bruce Momjian [Thu, 25 Oct 2001 03:56:35 +0000 (03:56 +0000)]
Add current typedef symbols to pgindent.

23 years agoAdd do { ... } while (0) to more bad macros.
Bruce Momjian [Thu, 25 Oct 2001 01:29:37 +0000 (01:29 +0000)]
Add do { ... } while (0) to more bad macros.

23 years agoAdd more missing 'do { ... } while (0)' in missing macros. Without it,
Bruce Momjian [Thu, 25 Oct 2001 00:55:48 +0000 (00:55 +0000)]
Add more missing 'do { ... } while (0)' in missing macros.  Without it,
these macros fail in if/else cases:

#define X \
{ \
... \
}

{

if (...)
X;
else
...
}

with proper setup:

#define X \
do { \
... \
} while (0)

it works fine.

23 years agoAdd missing "do { ... } while(0)" in ODBC macros and add find_baddefs
Bruce Momjian [Thu, 25 Oct 2001 00:50:50 +0000 (00:50 +0000)]
Add missing "do { ... } while(0)" in ODBC macros and add find_baddefs
script.

23 years agoInclude locale.h before undefining gettext() to avoid compilation errors
Peter Eisentraut [Wed, 24 Oct 2001 21:49:14 +0000 (21:49 +0000)]
Include locale.h before undefining gettext() to avoid compilation errors
on Solaris.

per report from Lee Kindness, 2001-10-23

23 years agoAll three *.po patches applied.
Bruce Momjian [Wed, 24 Oct 2001 17:52:28 +0000 (17:52 +0000)]
All three *.po patches applied.

forth@pagic.net

23 years agoHere is a patch for DatabaseMetaData to show precision properly. It is
Bruce Momjian [Wed, 24 Oct 2001 17:44:28 +0000 (17:44 +0000)]
Here is a patch for DatabaseMetaData to show precision properly.  It is
from Mark Lillywhite.  I am adding to the patch queue.

23 years agoAllow concurrent index creation for the same table.
Hiroshi Inoue [Wed, 24 Oct 2001 09:28:31 +0000 (09:28 +0000)]
Allow concurrent index creation for the same table.

23 years ago"time" is now a reserved keyword(changed to "mtime").
Tatsuo Ishii [Wed, 24 Oct 2001 08:07:22 +0000 (08:07 +0000)]
"time" is now a reserved keyword(changed to "mtime").

23 years agofix for a bug in DatabaseMetaData.getIndexInfo(). This fixes a bug reported by tom_f...
Barry Lind [Wed, 24 Oct 2001 04:31:50 +0000 (04:31 +0000)]
fix for a bug in DatabaseMetaData.getIndexInfo().  This fixes a bug reported by tom_falconer@lineone.net.  On Sept 7th, he sent a test case to the list demonstrating the bug.  His test case now works successfully with this patch

23 years agoUpdate TODO list.
Bruce Momjian [Wed, 24 Oct 2001 01:01:36 +0000 (01:01 +0000)]
Update TODO list.

23 years agoUpdate TODO list.
Bruce Momjian [Tue, 23 Oct 2001 23:27:18 +0000 (23:27 +0000)]
Update TODO list.

23 years agoEditorial work on descriptions of options.
Tom Lane [Tue, 23 Oct 2001 22:11:22 +0000 (22:11 +0000)]
Editorial work on descriptions of options.

23 years agoForbid the switch combination --clean --create, which is pointless
Tom Lane [Tue, 23 Oct 2001 21:26:44 +0000 (21:26 +0000)]
Forbid the switch combination --clean --create, which is pointless
(why bother dropping individual objects in a just-created database?)
as well as dangerous (as the code stands, the drops will be issued in
the wrong database, namely the one you were originally connected to).

23 years agoDocument range restriction on bit values used in INTERVAL typmod.
Tom Lane [Tue, 23 Oct 2001 20:17:27 +0000 (20:17 +0000)]
Document range restriction on bit values used in INTERVAL typmod.

23 years agoAdd support for INTERVAL's new typmod values to format_type.
Tom Lane [Tue, 23 Oct 2001 20:12:54 +0000 (20:12 +0000)]
Add support for INTERVAL's new typmod values to format_type.

23 years agoFix foreign keys on system columns.
Tom Lane [Tue, 23 Oct 2001 17:39:03 +0000 (17:39 +0000)]
Fix foreign keys on system columns.

23 years agoMake SPI's column-accessing functions work for system columns as well as
Tom Lane [Tue, 23 Oct 2001 17:38:25 +0000 (17:38 +0000)]
Make SPI's column-accessing functions work for system columns as well as
user columns.  Needed for foreign keys on OID, but useful in general.

23 years agoMove ALL out of UNION|INTERSECT|EXCEPT syntax.
Bruce Momjian [Tue, 23 Oct 2001 16:42:36 +0000 (16:42 +0000)]
Move ALL out of UNION|INTERSECT|EXCEPT syntax.

Alvaro Herrera

23 years agoUpdate TODO list.
Bruce Momjian [Tue, 23 Oct 2001 02:52:19 +0000 (02:52 +0000)]
Update TODO list.

23 years agoUpdate TODO list.
Bruce Momjian [Tue, 23 Oct 2001 02:51:35 +0000 (02:51 +0000)]
Update TODO list.

23 years agoNow I had them reversed. Wow that syntax is error-prone.
Bruce Momjian [Tue, 23 Oct 2001 02:50:41 +0000 (02:50 +0000)]
Now I had them reversed.  Wow that syntax is error-prone.

23 years agoSyntax fix. Can't use #ifdef in gram.y.
Bruce Momjian [Tue, 23 Oct 2001 02:47:14 +0000 (02:47 +0000)]
Syntax fix.  Can't use #ifdef in gram.y.

23 years agoBack out LIMIT #,# removal and mark it as to-be-removed in 7.3.
Bruce Momjian [Tue, 23 Oct 2001 02:45:37 +0000 (02:45 +0000)]
Back out LIMIT #,# removal and mark it as to-be-removed in 7.3.

23 years agoAdd error checking to PageRepairFragmentation to ensure that it can
Tom Lane [Tue, 23 Oct 2001 02:20:15 +0000 (02:20 +0000)]
Add error checking to PageRepairFragmentation to ensure that it can
never overwrite adjacent pages with copied data, even if page header
and/or item pointers are already corrupt.  Change inspired by trouble
report from Alvaro Herrera.

23 years agoAdd note explaining that multiple prompts for a password are normal
Tom Lane [Mon, 22 Oct 2001 23:48:11 +0000 (23:48 +0000)]
Add note explaining that multiple prompts for a password are normal
behavior when password auth is used.

23 years agoCause transformIndexConstraints() to do the right thing with requests
Tom Lane [Mon, 22 Oct 2001 22:49:02 +0000 (22:49 +0000)]
Cause transformIndexConstraints() to do the right thing with requests
for indexes on system columns.  Per complaint from Peter.

23 years agoConsolidate tables of known system attributes into one table.
Tom Lane [Mon, 22 Oct 2001 22:47:57 +0000 (22:47 +0000)]
Consolidate tables of known system attributes into one table.

23 years agoUpdate for latest fixes.
Tom Lane [Mon, 22 Oct 2001 19:52:41 +0000 (19:52 +0000)]
Update for latest fixes.

23 years agoFurther cleanup of ps_status setup code. On platforms where the
Tom Lane [Mon, 22 Oct 2001 19:41:38 +0000 (19:41 +0000)]
Further cleanup of ps_status setup code.  On platforms where the
environment strings need to be moved around, do so when called from
initial startup (main.c), not in init_ps_status.  This eliminates the
former risk of invalidating saved environment-string pointers, since
no code has yet had a chance to grab any such pointers when main.c
is running.

23 years agoAdd defenses against invalid operator names passed in CREATE OPERATOR
Tom Lane [Mon, 22 Oct 2001 19:34:13 +0000 (19:34 +0000)]
Add defenses against invalid operator names passed in CREATE OPERATOR
arguments (where the parser doesn't check them already).  Minor code
cleanups too.

23 years agoRebuild cached function definition after CREATE OR REPLACE FUNCTION.
Tom Lane [Mon, 22 Oct 2001 19:32:27 +0000 (19:32 +0000)]
Rebuild cached function definition after CREATE OR REPLACE FUNCTION.
Fix typlen-vs-typmod errors inherited from pltcl.

23 years agoGenerate correct syntax for DROP OPERATOR with unary operators.
Tom Lane [Mon, 22 Oct 2001 19:31:09 +0000 (19:31 +0000)]
Generate correct syntax for DROP OPERATOR with unary operators.

23 years agoAdd ecpg items to HISTORY file.
Bruce Momjian [Mon, 22 Oct 2001 18:42:44 +0000 (18:42 +0000)]
Add ecpg items to HISTORY file.

23 years agoMake the CREATE TABLE ref page more readable and update some information.
Peter Eisentraut [Mon, 22 Oct 2001 18:14:47 +0000 (18:14 +0000)]
Make the CREATE TABLE ref page more readable and update some information.

23 years agosynced preproc.y with gram.y
Michael Meskes [Mon, 22 Oct 2001 17:05:56 +0000 (17:05 +0000)]
synced preproc.y with gram.y

23 years agoFix FindExec() for case where executable is found via a relative path
Tom Lane [Sun, 21 Oct 2001 03:43:54 +0000 (03:43 +0000)]
Fix FindExec() for case where executable is found via a relative path
in .:/home/postgres/testversion/bin:/opt/perl5.6.1/bin:/home/postgres/bin:/usr/local/bin:/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/upgrade/bin:/opt/CC/bin:/opt/langtools/bin:/opt/graphics/phigs/bin:/opt/java/bin:/bin:/opt/imake/bin:/opt/hparray/bin:/opt/aCC/bin:/opt/lrom/bin:/usr/local/nmh/bin:. (I suppose the only common case for this is '.').

23 years agoFix getopt-vs-init_ps_display problem by copying original argv[] info,
Tom Lane [Sun, 21 Oct 2001 03:25:36 +0000 (03:25 +0000)]
Fix getopt-vs-init_ps_display problem by copying original argv[] info,
per suggestion from Peter.  Simplify several APIs by transmitting the
original argv location directly from main.c to ps_status.c, instead of
passing it down through several levels of subroutines.

23 years agoRevert change to autodetect '__getopt_initialized' variable ... turns
Tom Lane [Sat, 20 Oct 2001 17:57:39 +0000 (17:57 +0000)]
Revert change to autodetect '__getopt_initialized' variable ... turns
out glibc doesn't actually export this variable, so we need a different
solution.

23 years agoChange LIMIT #,# error message to be more generic.
Bruce Momjian [Sat, 20 Oct 2001 16:51:02 +0000 (16:51 +0000)]
Change LIMIT #,# error message to be more generic.

23 years agoRemove LIMIT #,# and suggest LIMIT # OFFSET #, per mailing list discussion.
Bruce Momjian [Sat, 20 Oct 2001 02:55:39 +0000 (02:55 +0000)]
Remove LIMIT #,# and suggest LIMIT # OFFSET #, per mailing list discussion.

23 years agoFix transposed arguments for typmod for one INTERVAL production.
Thomas G. Lockhart [Sat, 20 Oct 2001 01:02:22 +0000 (01:02 +0000)]
Fix transposed arguments for typmod for one INTERVAL production.
Mask both typmod subfields for INTERVAL to avoid setting the high bit,
 per dire warning from Tom Lane.
Clear tmask for DTK_ISO_TIME case to avoid time zone troubles.
 Symptom reported by Tom Lane.
Clean up checking for valid time zone info in output routine.
 This should now work for both SQL99 and Unix-style time zones.
Put in explicit check for INTERVAL() typmod rounding to avoid accumulating
 cruft in the lower bits. Not sure that this helps, but we'll need to do
 something. The symptom is visible with a query like
 select interval(2) '10000 days 01:02:03.040506';
Regression tests are patched to repair the Tom Lane symptom, and all pass.

23 years agoFix plperl to discard cached function definition after CREATE OR
Tom Lane [Fri, 19 Oct 2001 22:43:49 +0000 (22:43 +0000)]
Fix plperl to discard cached function definition after CREATE OR
REPLACE FUNCTION.  Clean up typlen/typmod errors inherited from pltcl.

23 years agoProper fix for glibc getopt() botch. Surprising we did not see this
Tom Lane [Fri, 19 Oct 2001 20:47:09 +0000 (20:47 +0000)]
Proper fix for glibc getopt() botch.  Surprising we did not see this
before.

23 years agoFix a lot of confusion between typlen and typmod. Didn't hurt too much
Tom Lane [Fri, 19 Oct 2001 19:43:19 +0000 (19:43 +0000)]
Fix a lot of confusion between typlen and typmod.  Didn't hurt too much
back when only varlena types paid any attention to typmod ...

23 years agoSet optreset on platforms that have it before launching postmaster
Tom Lane [Fri, 19 Oct 2001 18:19:41 +0000 (18:19 +0000)]
Set optreset on platforms that have it before launching postmaster
subprocesses; perhaps this will fix portability problem just noted by
Lockhart.  Also, move test for bad permissions of DataDir to a more
logical place.

23 years agoEnsure that all startup paths (postmaster, standalone postgres, or
Tom Lane [Fri, 19 Oct 2001 17:03:08 +0000 (17:03 +0000)]
Ensure that all startup paths (postmaster, standalone postgres, or
bootstrap) check for a valid PG_VERSION file before looking at anything
else in the data directory.  This fixes confusing error report when
trying to start current sources in a pre-7.1 data directory.
Per trouble report from Rich Shepard 10/18/01.

23 years agoRename macro arg to avoid useless compiler warning when building plperl.
Tom Lane [Fri, 19 Oct 2001 15:38:57 +0000 (15:38 +0000)]
Rename macro arg to avoid useless compiler warning when building plperl.

23 years agoWithout this patch I couldn't compile PostgreSQL on Solaris 8 x86 using
Bruce Momjian [Fri, 19 Oct 2001 15:06:48 +0000 (15:06 +0000)]
Without this patch I couldn't compile PostgreSQL on Solaris 8 x86 using
Sun's compiler. May be it will be usefull for someone else?

Denis Ustimenko

23 years ago> This stops the interface from leaking the row tuples (and thus the
Bruce Momjian [Fri, 19 Oct 2001 15:00:26 +0000 (15:00 +0000)]
> This stops the interface from leaking the row tuples (and thus the
> results of every fetch).

Stephen Robert Norris

23 years agoUpdate TODO list.
Bruce Momjian [Fri, 19 Oct 2001 14:59:04 +0000 (14:59 +0000)]
Update TODO list.

23 years agoremoved "not fully implemented" warning for nullif
Michael Meskes [Fri, 19 Oct 2001 14:31:44 +0000 (14:31 +0000)]
removed "not fully implemented" warning for nullif

23 years agoChange SC_fetch() to not retrieve data in case the
Hiroshi Inoue [Fri, 19 Oct 2001 05:39:14 +0000 (05:39 +0000)]
Change SC_fetch() to not retrieve data in case the
SQL_RETRIEVE_DATA option is SQL_RD_OFF. This would
avoid a crash when scrolling Grid controls.

23 years agoFix pltcl to update cached function def after
Tom Lane [Fri, 19 Oct 2001 02:43:46 +0000 (02:43 +0000)]
Fix pltcl to update cached function def after
CREATE OR REPLACE FUNCTION.

23 years agoUpdate TODO list.
Bruce Momjian [Fri, 19 Oct 2001 01:30:17 +0000 (01:30 +0000)]
Update TODO list.

23 years agoTypo.
Tom Lane [Fri, 19 Oct 2001 00:46:51 +0000 (00:46 +0000)]
Typo.

23 years agoMove init_ps_display from postgres.c to postmaster.c, putting it
Tom Lane [Fri, 19 Oct 2001 00:44:08 +0000 (00:44 +0000)]
Move init_ps_display from postgres.c to postmaster.c, putting it
just after receipt of the startup packet.  Now, postmaster children
that are waiting for client authentication response will show as
'postgres: user database host authentication'.  Also, do an
init_ps_display for startup/shutdown/checkpoint subprocesses,
so that they are readily identifiable as well.  Fix an obscure race
condition that could lead to Assert failure in the postmaster ---
attempting to start a checkpoint process before any connections have
been received led to calling PostmasterRandom before setting random_seed.

23 years agoSpell 'between' correctly, clean up spacing in error messages.
Tom Lane [Thu, 18 Oct 2001 23:16:09 +0000 (23:16 +0000)]
Spell 'between' correctly, clean up spacing in error messages.

23 years agoFix memory leakage when sending notice messages to client.
Tom Lane [Thu, 18 Oct 2001 23:07:29 +0000 (23:07 +0000)]
Fix memory leakage when sending notice messages to client.

23 years agoFix authentication so that it doesn't record an extra 'Password
Tom Lane [Thu, 18 Oct 2001 22:44:37 +0000 (22:44 +0000)]
Fix authentication so that it doesn't record an extra 'Password
authentication failed' and a 'send() failed: Broken pipe' message
on every connection from psql in password auth mode.  Problem is
that psql doesn't ask user for a password until it sees a password
challenge failure, and libpq just closes the connection unceremoniously
if it's challenged for a password when it hasn't got one to send.
Accordingly, EOF from the client after asking for a password is
normal behavior and should not result in postmaster log entries.

23 years agoAdd STATUS_EOF value needed for auth.c. Remove a bunch of unused
Tom Lane [Thu, 18 Oct 2001 22:40:52 +0000 (22:40 +0000)]
Add STATUS_EOF value needed for auth.c.  Remove a bunch of unused
STATUS_xxx macros to reduce clutter.

23 years agoFix several problems with simple_prompt() --- the nastiest being that
Tom Lane [Thu, 18 Oct 2001 21:57:11 +0000 (21:57 +0000)]
Fix several problems with simple_prompt() --- the nastiest being that
the entered password would get echoed on some platforms, eg HPUX.
We have enough copies of this code that I'm thinking it ought to be
moved into libpq, but that's a task for another day.

23 years agoChange error code docs to use colons.
Bruce Momjian [Thu, 18 Oct 2001 20:43:05 +0000 (20:43 +0000)]
Change error code docs to use colons.

23 years agoDocument all the ecpg error codes.
Bruce Momjian [Thu, 18 Oct 2001 20:32:58 +0000 (20:32 +0000)]
Document all the ecpg error codes.

23 years agoUpdate for new expected results.
Tom Lane [Thu, 18 Oct 2001 20:10:31 +0000 (20:10 +0000)]
Update for new expected results.

23 years agoDidn't compile on non-HAVE_TM_ZONE machines.
Tom Lane [Thu, 18 Oct 2001 19:54:59 +0000 (19:54 +0000)]
Didn't compile on non-HAVE_TM_ZONE machines.

23 years agoRepair missing brace in HAVE_INT_TIMEZONE case.
Tom Lane [Thu, 18 Oct 2001 19:52:03 +0000 (19:52 +0000)]
Repair missing brace in HAVE_INT_TIMEZONE case.

23 years agoAccept an INTERVAL argument for SET TIME ZONE per SQL99.
Thomas G. Lockhart [Thu, 18 Oct 2001 17:30:21 +0000 (17:30 +0000)]
Accept an INTERVAL argument for SET TIME ZONE per SQL99.
 Modified the parser and the SET handlers to use full Node structures
 rather than simply a character string argument.
Implement INTERVAL() YEAR TO MONTH (etc) syntax per SQL99.
 Does not yet accept the goofy string format that goes along with, but
 this should be fairly straight forward to fix now as a bug or later
 as a feature.
Implement precision for the INTERVAL() type.
 Use the typmod mechanism for both of INTERVAL features.
Fix the INTERVAL syntax in the parser:
 opt_interval was in the wrong place.
INTERVAL is now a reserved word, otherwise we get reduce/reduce errors.
Implement an explicit date_part() function for TIMETZ.
 Should fix coersion problem with INTERVAL reported by Peter E.
Fix up some error messages for date/time types.
 Use all caps for type names within message.
Fix recently introduced side-effect bug disabling 'epoch' as a recognized
 field for date_part() etc. Reported by Peter E. (??)
Bump catalog version number.
Rename "microseconds" current transaction time field
 from ...Msec to ...Usec. Duh!
date/time regression tests updated for reference platform, but a few
 changes will be necessary for others.

23 years agoExtend code that deduces implied equality clauses to detect whether a
Tom Lane [Thu, 18 Oct 2001 16:11:42 +0000 (16:11 +0000)]
Extend code that deduces implied equality clauses to detect whether a
clause being added to a particular restriction-clause list is redundant
with those already in the list.  This avoids useless work at runtime,
and (perhaps more importantly) keeps the selectivity estimation routines
from generating too-small estimates of numbers of output rows.
Also some minor improvements in OPTIMIZER_DEBUG displays.

23 years agoAdded Lee Kindness' patches.
Michael Meskes [Thu, 18 Oct 2001 11:01:35 +0000 (11:01 +0000)]
Added Lee Kindness' patches.