]> granicus.if.org Git - postgresql/log
postgresql
24 years agoAdd a simple regress test for SERIAL --- it's not much,
Tom Lane [Sun, 20 Feb 2000 02:16:02 +0000 (02:16 +0000)]
Add a simple regress test for SERIAL --- it's not much,
but it's better than no test at all...

24 years agoFix SERIAL columns, which Thomas inadvertently broke parsing of.
Tom Lane [Sun, 20 Feb 2000 02:14:58 +0000 (02:14 +0000)]
Fix SERIAL columns, which Thomas inadvertently broke parsing of.
Revised code probably accepts some silly combinations, but that's better
than not accepting valid ones.

24 years agoRepair longstanding violation of SQL92 semantics: GROUP BY would
Tom Lane [Sat, 19 Feb 2000 23:45:07 +0000 (23:45 +0000)]
Repair longstanding violation of SQL92 semantics: GROUP BY would
interpret a column name as an output column alias (targetlist AS name),
ather than a real column name as it ought to.  According to the spec,
only ORDER BY should look at output column names.  I left in GROUP BY's
willingness to use an output column number ('GROUP BY 2'), even though
this is also contrary to the spec --- again, only ORDER BY is supposed
to accept that.  But there is no possible reason to want to GROUP BY
an integer constant, so keeping this old behavior won't break any
SQL-compliant queries.  DISTINCT ON will behave the same as GROUP BY.

Change numerology regress test, which depended on the incorrect
behavior.

24 years agoApply Keith Park's updates for expected/horology-solaris-1947.out. Fix
Tom Lane [Sat, 19 Feb 2000 22:13:37 +0000 (22:13 +0000)]
Apply Keith Park's updates for expected/horology-solaris-1947.out.  Fix
erroneous expected output for RESET DateStyle: should be ISO now.
Fix run_check.sh so that test postmaster is started with PGDATESTYLE=ISO,
else the horology test won't pass.

24 years agoGet rid of postgres.c's separate parsing logic for PGDATESTYLE env.
Tom Lane [Sat, 19 Feb 2000 22:10:47 +0000 (22:10 +0000)]
Get rid of postgres.c's separate parsing logic for PGDATESTYLE env.
variable, instead calling same code in variable.c that is used to parse
SET DATESTYLE.  Fix bug: although backend's startup datestyle had been
changed to ISO, 'RESET DATESTYLE' and 'SET DATESTYLE TO DEFAULT' didn't
know about it.  For consistency I have made the latter two reset to the
PGDATESTYLE-defined initial value, which may not be the same as the
compiled-in default of ISO.

24 years agoAccept the noise-word ALL in aggregate function invocations for SQL92
Tom Lane [Sat, 19 Feb 2000 19:37:21 +0000 (19:37 +0000)]
Accept the noise-word ALL in aggregate function invocations for SQL92
compliance.  Wish they were all that easy...

24 years agoplperl's makefile tried to use perl's choice of compiler with
Tom Lane [Sat, 19 Feb 2000 19:02:20 +0000 (19:02 +0000)]
plperl's makefile tried to use perl's choice of compiler with
postgres's choice of compiler options.  Tres uncool.

24 years agoHP's compiler objects (quite rightly too) to 'static void foo();'
Tom Lane [Sat, 19 Feb 2000 18:58:37 +0000 (18:58 +0000)]
HP's compiler objects (quite rightly too) to 'static void foo();'
followed by 'extern void foo() { ... }'.

24 years agoFirst workaround solution for Jan's column constraint attributes.
Thomas G. Lockhart [Sat, 19 Feb 2000 08:25:49 +0000 (08:25 +0000)]
First workaround solution for Jan's column constraint attributes.

24 years agoClean up markup so docs will compile.
Thomas G. Lockhart [Sat, 19 Feb 2000 08:14:54 +0000 (08:14 +0000)]
Clean up markup so docs will compile.

24 years agoUpdate for new Irix info.
Thomas G. Lockhart [Sat, 19 Feb 2000 08:14:33 +0000 (08:14 +0000)]
Update for new Irix info.

24 years agoFix nasty bug in setting client_encoding
Tatsuo Ishii [Sat, 19 Feb 2000 05:04:54 +0000 (05:04 +0000)]
Fix nasty bug in setting client_encoding

24 years agoAdd new backslash command \eset and \eshow.
Tatsuo Ishii [Sat, 19 Feb 2000 05:01:16 +0000 (05:01 +0000)]
Add new backslash command \eset and \eshow.

24 years agoFix compiler warning
Tatsuo Ishii [Sat, 19 Feb 2000 04:59:30 +0000 (04:59 +0000)]
Fix compiler warning

24 years agoClean up scan.l's handling of \r vs \n --- they are reliably treated as
Tom Lane [Sat, 19 Feb 2000 04:17:25 +0000 (04:17 +0000)]
Clean up scan.l's handling of \r vs \n --- they are reliably treated as
equivalent now, which should make Windows and Mac clients happier.
Also fix failure to handle SQL comments between segments of a multiline
quoted literal.

24 years agoRemove gcc warnings. The Postgres world isn't really safe
Tom Lane [Sat, 19 Feb 2000 02:29:07 +0000 (02:29 +0000)]
Remove gcc warnings.  The Postgres world isn't really safe
for 'const' qualifiers yet ...

24 years agoPlug some more memory leaks in the planner. It still leaks like a sieve,
Tom Lane [Fri, 18 Feb 2000 23:47:31 +0000 (23:47 +0000)]
Plug some more memory leaks in the planner.  It still leaks like a sieve,
but this is as good as it'll get for this release...

24 years ago*** empty log message ***
Michael Meskes [Fri, 18 Feb 2000 16:02:49 +0000 (16:02 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Michael Meskes [Fri, 18 Feb 2000 14:34:12 +0000 (14:34 +0000)]
*** empty log message ***

24 years agoImplement reindex command
Hiroshi Inoue [Fri, 18 Feb 2000 09:30:20 +0000 (09:30 +0000)]
Implement reindex command

24 years ago*** empty log message ***
Michael Meskes [Fri, 18 Feb 2000 08:49:07 +0000 (08:49 +0000)]
*** empty log message ***

24 years agoReplace inefficient _bt_invokestrat calls with direct calls to the
Tom Lane [Fri, 18 Feb 2000 06:32:39 +0000 (06:32 +0000)]
Replace inefficient _bt_invokestrat calls with direct calls to the
appropriate btree three-way comparison routine.  Not clear why the
three-way comparison routines were being used in some paths and not
others in btree --- incomplete changes by someone long ago, maybe?
Anyway, this makes for a nice speedup in CREATE INDEX.

24 years agoFixed handling of old --with-mb option using newly gained wisdom from
Peter Eisentraut [Fri, 18 Feb 2000 00:21:38 +0000 (00:21 +0000)]
Fixed handling of old --with-mb option using newly gained wisdom from
autoconf mailing list. ;)

24 years ago*** empty log message ***
Michael Meskes [Thu, 17 Feb 2000 19:48:58 +0000 (19:48 +0000)]
*** empty log message ***

24 years agoFix assert bug(was my fault)
Hiroshi Inoue [Thu, 17 Feb 2000 05:00:38 +0000 (05:00 +0000)]
Fix assert bug(was my fault)

24 years agoFinish repairing 6.5's problems with r-tree indexes: create appropriate
Tom Lane [Thu, 17 Feb 2000 03:40:02 +0000 (03:40 +0000)]
Finish repairing 6.5's problems with r-tree indexes: create appropriate
selectivity functions and make the r-tree operators use them.  The
estimation functions themselves are just stubs, unfortunately, but
perhaps someday someone will make them compute realistic estimates.
Change pg_am so that the optimizer can reliably tell the difference
between ordered and unordered indexes --- before it would think that
an r-tree index can be scanned in '<<' order, which is not right AFAIK.
Repair broken negator links for network_sup and related ops.
Initdb forced.  This might be my last initdb force for 7.0 ... hope so
anyway ...

24 years agoUpdate expected/horology-no-DST-before-1970.out to match
Tom Lane [Thu, 17 Feb 2000 02:20:59 +0000 (02:20 +0000)]
Update expected/horology-no-DST-before-1970.out to match
new datetime regress test.  Someone needs to deal with fixing
expected/horology-solaris-1947.out too, assuming we still need it.

24 years agoPackage: postgresql
Bruce Momjian [Wed, 16 Feb 2000 23:07:31 +0000 (23:07 +0000)]
Package: postgresql
Version: 6.5.3-11
Severity: important

'char' is not a signed type by default on powerpc; therefore a character
can
never be equal to EOF (-1).  A patch is attached.

Dan

/--------------------------------\  /--------------------------------\
|       Daniel Jacobowitz        |__|        SCS Class of 2002       |

24 years agoREADME not needed anymore.
Bruce Momjian [Wed, 16 Feb 2000 21:26:00 +0000 (21:26 +0000)]
README not needed anymore.

24 years agoAll regression tests pass except for rules.sql (unrelated).
Thomas G. Lockhart [Wed, 16 Feb 2000 18:17:02 +0000 (18:17 +0000)]
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
 Transform datetime and timespan into timestamp and interval.
 Deprecate datetime and timespan, though translate to new types in gram.y.
 Transform all datetime and timespan catalog entries into new types.
 Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
 Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
  routines for all date/time types.
 date.{h,c} now deals with date, time types.
 timestamp.{h,c} now deals with timestamp, interval types.
 nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.

24 years agoAll regression tests pass except for rules.sql (unrelated).
Thomas G. Lockhart [Wed, 16 Feb 2000 17:27:27 +0000 (17:27 +0000)]
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
 Transform datetime and timespan into timestamp and interval.
 Deprecate datetime and timespan, though translate to new types in gram.y.
 Transform all datetime and timespan catalog entries into new types.
 Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
 Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
  routines for all date/time types.
 date.{h,c} now deals with date, time types.
 timestamp.{h,c} now deals with timestamp, interval types.
 nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.

24 years agoImplement "date/time grand unification".
Thomas G. Lockhart [Wed, 16 Feb 2000 17:26:26 +0000 (17:26 +0000)]
Implement "date/time grand unification".
 Transform datetime and timespan into timestamp and interval.
 Deprecate datetime and timespan, though translate to new types in gram.y.
 Transform all datetime and timespan catalog entries into new types.
 Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
 Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
  routines for all date/time types.
 date.{h,c} now deals with date, time types.
 timestamp.{h,c} now deals with timestamp, interval types.
 nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.

24 years agoMake ISO date style (e.g. "2000-02-16 09:33") the default.
Thomas G. Lockhart [Wed, 16 Feb 2000 17:25:49 +0000 (17:25 +0000)]
Make ISO date style (e.g. "2000-02-16 09:33") the default.
Implement "date/time grand unification".
 Transform datetime and timespan into timestamp and interval.
 Deprecate datetime and timespan, though translate to new types in gram.y.
 Transform all datetime and timespan catalog entries into new types.
 Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
 Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
  routines for all date/time types.
 date.{h,c} now deals with date, time types.
 timestamp.{h,c} now deals with timestamp, interval types.
 nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.

24 years ago*** empty log message ***
Michael Meskes [Wed, 16 Feb 2000 16:18:29 +0000 (16:18 +0000)]
*** empty log message ***

24 years agoinclude cleanup
Bruce Momjian [Wed, 16 Feb 2000 13:22:00 +0000 (13:22 +0000)]
include cleanup

24 years agoClean up include files use in psql.
Bruce Momjian [Wed, 16 Feb 2000 13:15:26 +0000 (13:15 +0000)]
Clean up include files use in psql.

24 years ago*** empty log message ***
Michael Meskes [Wed, 16 Feb 2000 11:52:25 +0000 (11:52 +0000)]
*** empty log message ***

24 years agoIf we don't have any stats for a boolean column, assume
Tom Lane [Wed, 16 Feb 2000 01:00:23 +0000 (01:00 +0000)]
If we don't have any stats for a boolean column, assume
the disbursion is 0.5, not something small.

24 years agoMake eqsel produce better results for boolean columns,
Tom Lane [Wed, 16 Feb 2000 00:59:27 +0000 (00:59 +0000)]
Make eqsel produce better results for boolean columns,
and make scalarltsel a little more forgiving at the boundaries of the
known range of a column value.

24 years agoUpdate EXPLAIN documentation to reflect the fact that the
Tom Lane [Tue, 15 Feb 2000 23:37:49 +0000 (23:37 +0000)]
Update EXPLAIN documentation to reflect the fact that the
planner now produces two cost numbers instead of one.

24 years agoRemove long-dead code.
Tom Lane [Tue, 15 Feb 2000 23:12:26 +0000 (23:12 +0000)]
Remove long-dead code.

24 years agoFix missing lfirst() in ListTableAsAttrs(). This code
Tom Lane [Tue, 15 Feb 2000 23:09:08 +0000 (23:09 +0000)]
Fix missing lfirst() in ListTableAsAttrs().  This code
doesn't seem to be used at the moment, but as long as I'm looking at it...

24 years agoNew cost model for planning, incorporating a penalty for random page
Tom Lane [Tue, 15 Feb 2000 20:49:31 +0000 (20:49 +0000)]
New cost model for planning, incorporating a penalty for random page
accesses versus sequential accesses, a (very crude) estimate of the
effects of caching on random page accesses, and cost to evaluate WHERE-
clause expressions.  Export critical parameters for this model as SET
variables.  Also, create SET variables for the planner's enable flags
(enable_seqscan, enable_indexscan, etc) so that these can be controlled
more conveniently than via PGOPTIONS.

Planner now estimates both startup cost (cost before retrieving
first tuple) and total cost of each path, so it can optimize queries
with LIMIT on a reasonable basis by interpolating between these costs.
Same facility is a win for EXISTS(...) subqueries and some other cases.

Redesign pathkey representation to achieve a major speedup in planning
(I saw as much as 5X on a 10-way join); also minor changes in planner
to reduce memory consumption by recycling discarded Path nodes and
not constructing unnecessary lists.

Minor cleanups to display more-plausible costs in some cases in
EXPLAIN output.

Initdb forced by change in interface to index cost estimation
functions.

24 years agoChange to report COPY line number in error messages affects
Tom Lane [Tue, 15 Feb 2000 19:45:31 +0000 (19:45 +0000)]
Change to report COPY line number in error messages affects
results of constraints regress test.

24 years ago*** empty log message ***
Michael Meskes [Tue, 15 Feb 2000 19:23:20 +0000 (19:23 +0000)]
*** empty log message ***

24 years agoSilence gcc warning about uninitialized var.
Tom Lane [Tue, 15 Feb 2000 18:17:33 +0000 (18:17 +0000)]
Silence gcc warning about uninitialized var.

24 years agoRemoved unused var to silence gcc warning.
Tom Lane [Tue, 15 Feb 2000 18:15:12 +0000 (18:15 +0000)]
Removed unused var to silence gcc warning.

24 years ago*** empty log message ***
Michael Meskes [Tue, 15 Feb 2000 12:15:57 +0000 (12:15 +0000)]
*** empty log message ***

24 years agoRepair bogus rule display of attr lists.
Tom Lane [Tue, 15 Feb 2000 08:24:12 +0000 (08:24 +0000)]
Repair bogus rule display of attr lists.

24 years agoRemove some // comments, which are not ANSI C last I heard.
Tom Lane [Tue, 15 Feb 2000 07:47:37 +0000 (07:47 +0000)]
Remove some // comments, which are not ANSI C last I heard.

24 years agoRename file to be consistant with other platform-specific FAQs.
Thomas G. Lockhart [Tue, 15 Feb 2000 05:22:36 +0000 (05:22 +0000)]
Rename file to be consistant with other platform-specific FAQs.

24 years agoFix extraneous ending tag on libpq.sgml.
Thomas G. Lockhart [Tue, 15 Feb 2000 03:57:02 +0000 (03:57 +0000)]
Fix extraneous ending tag on libpq.sgml.
Renormalize query.sgml and fix indenting.

24 years agoCarry column aliases from the parser frontend. Enables queries like
Thomas G. Lockhart [Tue, 15 Feb 2000 03:38:29 +0000 (03:38 +0000)]
Carry column aliases from the parser frontend. Enables queries like
  SELECT a FROM t1 tx (a);
Allow join syntax, including queries like
  SELECT * FROM t1 NATURAL JOIN t2;
Update RTE structure to hold column aliases in an Attr structure.

24 years agoUpdate "join syntax" test for new capabilities.
Thomas G. Lockhart [Tue, 15 Feb 2000 03:31:33 +0000 (03:31 +0000)]
Update "join syntax" test for new capabilities.

24 years agoAdd line to mention PST8PDT time zone. Seems useful, but maybe not?
Thomas G. Lockhart [Tue, 15 Feb 2000 03:30:57 +0000 (03:30 +0000)]
Add line to mention PST8PDT time zone. Seems useful, but maybe not?

24 years agoFix up error message to start with cap letter.
Thomas G. Lockhart [Tue, 15 Feb 2000 03:30:06 +0000 (03:30 +0000)]
Fix up error message to start with cap letter.

24 years agoFix up tabbing for _int8 entry.
Thomas G. Lockhart [Tue, 15 Feb 2000 03:28:31 +0000 (03:28 +0000)]
Fix up tabbing for _int8 entry.

24 years agoAdd "DEC" as synonym for "DECIMAL".
Thomas G. Lockhart [Tue, 15 Feb 2000 03:26:38 +0000 (03:26 +0000)]
Add "DEC" as synonym for "DECIMAL".
Add "SESSION_USER" as SQL92 keyword; equivalent to CURRENT_USER for now.
Implement column aliases (aka correlation names) and more join syntax.
Fix up indenting and tabbing.

24 years agoRecognize special case of POSIX time zone: "GMT+8" and "GMT-8".
Thomas G. Lockhart [Tue, 15 Feb 2000 03:17:09 +0000 (03:17 +0000)]
Recognize special case of POSIX time zone: "GMT+8" and "GMT-8".
Still needs to be done for the general case:
 "tz+/-#" where tz is a 3 char string.
This will probably involve moving code around to other places.

24 years agoFix up error and log messages.
Thomas G. Lockhart [Tue, 15 Feb 2000 03:00:37 +0000 (03:00 +0000)]
Fix up error and log messages.

24 years agoI suspect that you are not the person to send this to, but I wasn't sure
Bruce Momjian [Mon, 14 Feb 2000 12:33:19 +0000 (12:33 +0000)]
I suspect that you are not the person to send this to, but I wasn't sure
where else to mail it. I am the maintainer of unixODBC, and we have a
set of code in our project that started life as the Postgres windows
ODBC driver, which has been ported back to unix. Anyway I have just
fixed a memory leak in the driver, and I cant see any mention of the fix
being done in the main Postgres code, so I thougth I would let you know.

Its in the statement.c module, after the COMMIT statement has been
executed in SC_Execute, the code was

Nick Gorham

24 years agoUpdate README.NT with new NT ipc location.
Bruce Momjian [Mon, 14 Feb 2000 12:29:58 +0000 (12:29 +0000)]
Update README.NT with new NT ipc location.

24 years ago*** empty log message ***
Michael Meskes [Mon, 14 Feb 2000 10:00:06 +0000 (10:00 +0000)]
*** empty log message ***

24 years agoAdjusted psql echoing options (-a and -e)
Peter Eisentraut [Sun, 13 Feb 2000 21:45:15 +0000 (21:45 +0000)]
Adjusted psql echoing options (-a and -e)

24 years agocontrib-array.patch
Bruce Momjian [Sun, 13 Feb 2000 18:59:53 +0000 (18:59 +0000)]
contrib-array.patch

        this is an old patch which I have already submitted and never seen
        in the sources. It corrects the datatype oids used in some iterator
        functions. This bug has been reported to me by many other people.

contrib-datetime.patch

        some code contributed by Reiner Dassing <dassing@wettzell.ifag.de>

contrib-makefiles.patch

        fixes all my contrib makefiles which don't work with some compilers,
        as reported to me by another user.

contrib-miscutil.patch

        an old patch for one of my old contribs.

contrib-string.patch

        a small change to the c-like text output functions. Now the '{'
        is escaped only at the beginning of the string to distinguish it
        from arrays, and the '}' is no more escaped.

elog-lineno.patch

        adds the current lineno of CopyFrom to elog messages. This is very
        useful when you load a 1 million tuples table from an external file
        and there is a bad value somehere. Currently you get an error message
        but you can't know where is the bad data. The patch uses a variable
        which was declared static in copy.c. The variable is now exported
        and initialized to 0. It is always cleared at the end of the copy
        or at the first elog message or when the copy is canceled.
        I know this is very ugly but I can't find any better way of knowing
        where the copy fails and I have this problem quite often.

plperl-makefile.patch

        fixes a typo in a makefile, but the error must be elsewhere because
        it is a file generated automatically. Please have a look.

tprintf-timestamp.patch

        restores the original 2-digit year format, assuming that the two
        century digits don't carry much information and that '000202' is
        easier to read than 20000202. Being only a log file it shouldn't
        break anything.

Please apply the patches before the next scheduled code freeze.

I also noticed that some of the contribs don't compile correcly. Should we
ask people to fix their code or rename their makefiles so that they are
ignored by the top makefile?

--
Massimo Dal Zotto

24 years ago2. trigger.c fails to compile due to a syntax error. It contains
Bruce Momjian [Sun, 13 Feb 2000 13:21:11 +0000 (13:21 +0000)]
2.  trigger.c fails to compile due to a syntax error.  It contains
    a switch statement that has an empty default label.  A label of a
    switch statement must be followed by a statement (or a label which
    is followed by a statement (or a label which ...)).

3.  Files include stringinfo.h failed to compile.  The macro,
    'appendStringInfoCharMacro' is implemented with a '?:' operation
    that returns a void expression for the true part and a char expresion
    for the false part.  Both the true and false parts of the '?:' oper-
    ator must return the same type.

Billy G. Allie

24 years agoDefault argument for createdb
Peter Eisentraut [Thu, 10 Feb 2000 20:08:58 +0000 (20:08 +0000)]
Default argument for createdb
Changed EXIT_ON_ERROR to ON_ERROR_STOP in psql

24 years agoAdd btree indexing of boolean values
Bruce Momjian [Thu, 10 Feb 2000 19:51:52 +0000 (19:51 +0000)]
Add btree indexing of boolean values
 Don Baccus

24 years agoImprove default compile ops.
Bruce Momjian [Thu, 10 Feb 2000 19:11:17 +0000 (19:11 +0000)]
Improve default compile ops.

24 years agoAdd no CVS to make_mkid.
Bruce Momjian [Thu, 10 Feb 2000 18:41:35 +0000 (18:41 +0000)]
Add no CVS to make_mkid.

24 years agoPrevent tags files in cvs directory.
Bruce Momjian [Thu, 10 Feb 2000 18:34:26 +0000 (18:34 +0000)]
Prevent tags files in cvs directory.

24 years agoYou will need to copy "config.h.win32" to "config.h" in the include
Bruce Momjian [Thu, 10 Feb 2000 15:47:58 +0000 (15:47 +0000)]
You will need to copy "config.h.win32" to "config.h" in the include
directory.

I think this patch to the docs should be what is needed.

 Magnus Hagander

24 years agoUpdate length to 31.
Bruce Momjian [Thu, 10 Feb 2000 04:08:25 +0000 (04:08 +0000)]
Update length to 31.

24 years agoHere is the patch to add plperl to droplang.
Bruce Momjian [Wed, 9 Feb 2000 20:23:26 +0000 (20:23 +0000)]
Here is the patch to add plperl to droplang.
Mark Hollomon

24 years agoUpdate TODO list.
Bruce Momjian [Wed, 9 Feb 2000 20:09:29 +0000 (20:09 +0000)]
Update TODO list.

24 years agoI checked the WinNT port yesterday (a few days old snapshot from CVS) and I
Bruce Momjian [Wed, 9 Feb 2000 16:23:44 +0000 (16:23 +0000)]
I checked the WinNT port yesterday (a few days old snapshot from CVS) and I
am including a patch to get it compile.

changes to psql:
- added less as default pager when compiling on Cygwin
- need to declare "filename_completion_function" because it is not exported
from readline -> added to include/port/win.h

changes to pg_id:
- include of <getopt.h>
- add .exe when installing

I think there is a problem with calling the regress tests on WinNT - it
should be called with PORTNAME not HOST as the parameter to regress.sh or
the check  when to add "-h localhost" to psql has to be changed. Now it is
checked against the PORTNAME.

The results of the regress tests were OK with expected failures ;-)

Daniel Horak

24 years agoEnable backward sequential scan even after reaching EOF.
Hiroshi Inoue [Wed, 9 Feb 2000 03:49:47 +0000 (03:49 +0000)]
Enable backward sequential scan even after reaching EOF.

24 years agoFixed broken initdb --show patch
Peter Eisentraut [Wed, 9 Feb 2000 00:21:49 +0000 (00:21 +0000)]
Fixed broken initdb --show patch

24 years agoOoops ... 'char c' can hold a char, but it can't hold EOF ...
Tom Lane [Wed, 9 Feb 2000 00:10:11 +0000 (00:10 +0000)]
Ooops ... 'char c' can hold a char, but it can't hold EOF ...

24 years ago yesterday I had a problem with initdb. I set bad environment values
Bruce Momjian [Tue, 8 Feb 2000 15:58:54 +0000 (15:58 +0000)]
 yesterday I had a problem with initdb. I set bad environment values
and initdb crashs (I set pglib path to PG 6.5.3 directory instead to
7.0 and initdb take this BKI old templates ... (initdb not check
BKI version and BKI files not has any version comments (TODO?))

 This patch add to the initdb --show option which show setting of all
initdb's values. It spare developers time if in setting is bug.

                                                Karel

----------------------------------------------------------------------
Karel Zak <zakkr@zf.jcu.cz>              http://home.zf.jcu.cz/~zakkr/

24 years ago I'm sending patch with new version of to_char numbers formatting.
Bruce Momjian [Tue, 8 Feb 2000 15:57:01 +0000 (15:57 +0000)]
 I'm sending patch with new version of to_char numbers formatting.

 The PostgreSQL's to_char() is very compatible with Oracle's to_char
 now. I hope that to_char's 3000 rows of source is without bugs, but
 will good if anyone test it, for me it works very well :-)

                                                        Karel

----------------------------------------------------------------------
Karel Zak <zakkr@zf.jcu.cz>              http://home.zf.jcu.cz/~zakkr/

24 years agoFixed psql double quoting of SQL ids
Peter Eisentraut [Mon, 7 Feb 2000 23:10:11 +0000 (23:10 +0000)]
Fixed psql double quoting of SQL ids
Fixed libpq printing functions

24 years agoMask removal of network_ops in 7.0.
Bruce Momjian [Mon, 7 Feb 2000 21:24:15 +0000 (21:24 +0000)]
Mask removal of network_ops in 7.0.

24 years agoEnabled MATCH <unspecified>
Jan Wieck [Mon, 7 Feb 2000 18:12:49 +0000 (18:12 +0000)]
Enabled MATCH <unspecified>

Jan

24 years agoAdded complete MATCH <unspecified> support contributed by Don Baccus.
Jan Wieck [Mon, 7 Feb 2000 17:50:38 +0000 (17:50 +0000)]
Added complete MATCH <unspecified> support contributed by Don Baccus.

Jan

24 years agoDisable/reenable triggers for data only dump.
Jan Wieck [Mon, 7 Feb 2000 16:30:58 +0000 (16:30 +0000)]
Disable/reenable triggers for data only dump.

Jan

24 years agoRepair planning bugs caused by my misguided removal of restrictinfo link
Tom Lane [Mon, 7 Feb 2000 04:41:04 +0000 (04:41 +0000)]
Repair planning bugs caused by my misguided removal of restrictinfo link
fields in JoinPaths --- turns out that we do need that after all :-(.
Also, rearrange planner so that only one RelOptInfo is created for a
particular set of joined base relations, no matter how many different
subsets of relations it can be created from.  This saves memory and
processing time compared to the old method of making a bunch of RelOptInfos
and then removing the duplicates.  Clean up the jointree iteration logic;
not sure if it's better, but I sure find it more readable and plausible
now, particularly for the case of 'bushy plans'.

24 years agochange copyright year 1999->2000
Tatsuo Ishii [Mon, 7 Feb 2000 04:31:10 +0000 (04:31 +0000)]
change copyright year 1999->2000
Minor fix

24 years agoAllow SELECT .. FOR UPDATE in PL/pgSQL.
Hiroshi Inoue [Mon, 7 Feb 2000 03:39:13 +0000 (03:39 +0000)]
Allow SELECT .. FOR UPDATE in PL/pgSQL.

24 years agoRemove ugly call ImmediateSharedRelationCacheInvalidate()
Hiroshi Inoue [Mon, 7 Feb 2000 02:38:18 +0000 (02:38 +0000)]
Remove ugly call ImmediateSharedRelationCacheInvalidate()
from md.c.

24 years agoRemoved special hack causing ON UPDATE NO ACTION trigger to
Jan Wieck [Sun, 6 Feb 2000 10:19:45 +0000 (10:19 +0000)]
Removed special hack causing ON UPDATE NO ACTION trigger to
be suppressed.

Jan

24 years agoSolaris has always had problems with 1947 in the
Bruce Momjian [Sun, 6 Feb 2000 05:09:42 +0000 (05:09 +0000)]
Solaris has always had problems with 1947 in the
regression tests so I prepared a set of expected
files to make things look OK.

There's also a file to account for minor variations
in the geopmetry output and a resultmap patch to
pull them all together.

With these changes PostgreSQL, from CVS, builds and
regression tests (runcheck) cleanly.

Keith Parks.

24 years agoRename same() to sameseti() to have a slightly less generic name. Move
Tom Lane [Sun, 6 Feb 2000 03:27:35 +0000 (03:27 +0000)]
Rename same() to sameseti() to have a slightly less generic name.  Move
nonoverlap_sets() and is_subset() to list.c, where they should have lived
to begin with, and rename to nonoverlap_setsi and is_subseti since they
only work on integer lists.

24 years agoFix a bug when specfying -D option.
Tatsuo Ishii [Sun, 6 Feb 2000 00:49:03 +0000 (00:49 +0000)]
Fix a bug when specfying -D option.
fix suggested by Keith Parks.

24 years agoReplace nth() calls in inner loops with traversal of the list via
Tom Lane [Sat, 5 Feb 2000 23:19:44 +0000 (23:19 +0000)]
Replace nth() calls in inner loops with traversal of the list via
lnext, to eliminate O(N^2) behavior with lots of indexquals.

24 years agoFurther cleanup for OR-of-AND WHERE-clauses. orindxpath can now handle
Tom Lane [Sat, 5 Feb 2000 18:26:09 +0000 (18:26 +0000)]
Further cleanup for OR-of-AND WHERE-clauses.  orindxpath can now handle
extracting from an AND subclause just those opclauses that are relevant
for a particular index.  For example, we can now consider using an index
on x to process WHERE (x = 1 AND y = 2) OR (x = 2 AND y = 4) OR ...

24 years agoUpdate TODO list.
Bruce Momjian [Sat, 5 Feb 2000 17:02:43 +0000 (17:02 +0000)]
Update TODO list.

24 years agoChange function name PQclientencoding to PQclientEncoding since
Tatsuo Ishii [Sat, 5 Feb 2000 12:33:22 +0000 (12:33 +0000)]
Change function name PQclientencoding to PQclientEncoding since
it seems more suitable for the naming convention in libpq.

New function PQsetClientEncoding added. It makes possible to change
the client encoding on the fly without setting PGCLIENTENCODING.

24 years agoChange function name PQclientencoding to PQclientEncoding since
Tatsuo Ishii [Sat, 5 Feb 2000 12:27:56 +0000 (12:27 +0000)]
Change function name PQclientencoding to PQclientEncoding since
it seems more suitable for the naming convention in libpq.

24 years agoEnabling automatic primary key detection for self-referencing
Jan Wieck [Sat, 5 Feb 2000 00:20:38 +0000 (00:20 +0000)]
Enabling automatic primary key detection for self-referencing
FOREIGN KEY constraint during CREATE TABLE. Tnx to Stephan.

Jan