Bruce Momjian
5ef74fe593
Correct fix for indenting.
2001-10-27 03:31:36 +00:00
Tom Lane
8dcf998dd1
Remove no-longer-needed dependencies on DLSUFFIX.
2001-10-26 20:45:33 +00:00
Bruce Momjian
b93939a6a7
Adjust NR tests. More accurate.
2001-10-26 17:54:45 +00:00
Bruce Momjian
8c1f4e574b
Add code to not indent enum, per Tom Lane.
2001-10-26 16:21:13 +00:00
Bruce Momjian
99a9f2f6f4
Add ODBC typedefs.
2001-10-26 15:42:54 +00:00
Tom Lane
40ce3a93f1
Remove 294 reduce/reduce conflicts.
2001-10-25 20:56:53 +00:00
Tom Lane
22d9e91219
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...
2001-10-25 20:37:30 +00:00
Bruce Momjian
80b9a00439
Add blank line before #endif to #endif's at the end of the file.
2001-10-25 19:57:03 +00:00
Bruce Momjian
3231341eed
Add slash for comment spacing, for Tom.
2001-10-25 19:22:05 +00:00
Bruce Momjian
81d9a9674e
Add comment spaces for trailing ) and comment.
2001-10-25 18:44:42 +00:00
Bruce Momjian
cae059ba5e
Add spacing for single-line comments with trailing semicolon _and_
...
comma, per Tom.
2001-10-25 18:25:23 +00:00
Tom Lane
a0cd991987
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.
2001-10-25 14:10:07 +00:00
Tom Lane
92e8282229
Add missing output routine for FkConstraint nodes.
2001-10-25 14:08:11 +00:00
Bruce Momjian
05584c9660
Code cleanup.
2001-10-25 06:27:56 +00:00
Bruce Momjian
d2e27b0674
pgjindent jdbc files. First time jdbc files were formatted.
2001-10-25 06:00:05 +00:00
Bruce Momjian
b81844b173
pgindent run on all C files. Java run to follow. initdb/regression
...
tests pass.
2001-10-25 05:50:21 +00:00
Bruce Momjian
59da2105d8
Update to prevent CATALOG() from wrapping.
2001-10-25 05:07:56 +00:00
Bruce Momjian
bbc7491de1
Add current typedef symbols to pgindent.
2001-10-25 03:56:35 +00:00
Bruce Momjian
fde8edaf53
Add do { ... } while (0) to more bad macros.
2001-10-25 01:29:37 +00:00
Bruce Momjian
309a04f5b8
Add missing "do { ... } while(0)" in ODBC macros and add find_baddefs
...
script.
2001-10-25 00:50:50 +00:00
Peter Eisentraut
8b4d5c7575
Include locale.h before undefining gettext() to avoid compilation errors
...
on Solaris.
per report from Lee Kindness, 2001-10-23
2001-10-24 21:49:14 +00:00
Bruce Momjian
6f6d16ab25
All three *.po patches applied.
...
forth@pagic.net
2001-10-24 17:52:28 +00:00
Bruce Momjian
cabe9896bc
Here is a patch for DatabaseMetaData to show precision properly. It is
...
from Mark Lillywhite. I am adding to the patch queue.
2001-10-24 17:44:28 +00:00
Hiroshi Inoue
0450331526
Allow concurrent index creation for the same table.
2001-10-24 09:28:31 +00:00
Barry Lind
97ab49beb0
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
2001-10-24 04:31:50 +00:00
Tom Lane
b662e321c5
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).
2001-10-23 21:26:44 +00:00
Tom Lane
2628d9b3a4
Document range restriction on bit values used in INTERVAL typmod.
2001-10-23 20:17:27 +00:00
Tom Lane
d0667af926
Add support for INTERVAL's new typmod values to format_type.
2001-10-23 20:12:54 +00:00
Tom Lane
01b73d3f27
Fix foreign keys on system columns.
2001-10-23 17:39:03 +00:00
Tom Lane
57dd2ce78a
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.
2001-10-23 17:38:25 +00:00
Bruce Momjian
8dded696e6
Now I had them reversed. Wow that syntax is error-prone.
2001-10-23 02:50:41 +00:00
Bruce Momjian
caafc1c5cc
Syntax fix. Can't use #ifdef in gram.y.
2001-10-23 02:47:14 +00:00
Bruce Momjian
e1ce520c09
Back out LIMIT #,# removal and mark it as to-be-removed in 7.3.
2001-10-23 02:45:37 +00:00
Tom Lane
087771ae40
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.
2001-10-23 02:20:15 +00:00
Tom Lane
dab708ea08
Cause transformIndexConstraints() to do the right thing with requests
...
for indexes on system columns. Per complaint from Peter.
2001-10-22 22:49:02 +00:00
Tom Lane
c59839ac6d
Consolidate tables of known system attributes into one table.
2001-10-22 22:47:57 +00:00
Tom Lane
b00c6c841f
Update for latest fixes.
2001-10-22 19:52:41 +00:00
Tom Lane
94daee3cb7
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.
2001-10-22 19:41:38 +00:00
Tom Lane
a19f2605ed
Add defenses against invalid operator names passed in CREATE OPERATOR
...
arguments (where the parser doesn't check them already). Minor code
cleanups too.
2001-10-22 19:34:13 +00:00
Tom Lane
970a2d1c91
Rebuild cached function definition after CREATE OR REPLACE FUNCTION.
...
Fix typlen-vs-typmod errors inherited from pltcl.
2001-10-22 19:32:27 +00:00
Tom Lane
b2e859a4fe
Generate correct syntax for DROP OPERATOR with unary operators.
2001-10-22 19:31:09 +00:00
Michael Meskes
e97fe98c36
synced preproc.y with gram.y
2001-10-22 17:05:56 +00:00
Tom Lane
6ec5eaad3b
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 '.').
2001-10-21 03:43:54 +00:00
Tom Lane
b2e92a712e
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.
2001-10-21 03:25:36 +00:00
Tom Lane
2b7206a993
Revert change to autodetect '__getopt_initialized' variable ... turns
...
out glibc doesn't actually export this variable, so we need a different
solution.
2001-10-20 17:57:39 +00:00
Bruce Momjian
bb8f8e6279
Change LIMIT #,# error message to be more generic.
2001-10-20 16:51:02 +00:00
Bruce Momjian
f363b3177d
Remove LIMIT #,# and suggest LIMIT # OFFSET #, per mailing list discussion.
2001-10-20 02:55:39 +00:00
Thomas G. Lockhart
424d9389d6
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.
2001-10-20 01:02:22 +00:00
Tom Lane
3a484d9e99
Fix plperl to discard cached function definition after CREATE OR
...
REPLACE FUNCTION. Clean up typlen/typmod errors inherited from pltcl.
2001-10-19 22:43:49 +00:00
Tom Lane
379268aa62
Proper fix for glibc getopt() botch. Surprising we did not see this
...
before.
2001-10-19 20:47:09 +00:00