]> granicus.if.org Git - postgresql/log
postgresql
27 years agoFix predicted output for month boundary arithmetic problems in
Thomas G. Lockhart [Fri, 20 Jun 1997 17:20:55 +0000 (17:20 +0000)]
Fix predicted output for month boundary arithmetic problems in
 datetime +/- timespan. Only manifested when date is at end of month
 and time pushes the date into the next month.

27 years agoFix broken parsing for lists of options. Apparently broken when support was
Thomas G. Lockhart [Fri, 20 Jun 1997 17:17:03 +0000 (17:17 +0000)]
Fix broken parsing for lists of options. Apparently broken when support was
 added for keyword=value options.

27 years agoAdd parser category for "DST" Daylight Savings Time qualifier on time zones.
Thomas G. Lockhart [Fri, 20 Jun 1997 17:15:00 +0000 (17:15 +0000)]
Add parser category for "DST" Daylight Savings Time qualifier on time zones.

27 years agoFix leap year and month boundary arithmetic for datetime +/- timespan;
Thomas G. Lockhart [Fri, 20 Jun 1997 17:12:54 +0000 (17:12 +0000)]
Fix leap year and month boundary arithmetic for datetime +/- timespan;
 the problem only manifests itself when adding years/months and hours
 when the hours:minutes:seconds pushes over midnight.
Fix interpretation of times with explicit timezone when the timezone is
 in daylight savings time and is not the default timezone.
Allow interpretation of explicit timezone when it is specified as two words:
 <standard time> DST". For example, "MET DST" (Middle European Time Daylight
 Savings Time). This syntax is found in the zic package on Linux boxes at least.

27 years agoCheck pgdump return request.
Bruce Momjian [Fri, 20 Jun 1997 16:37:10 +0000 (16:37 +0000)]
Check pgdump return request.

27 years agoAllow pg_dump to preserve owners of all objects.
Bruce Momjian [Fri, 20 Jun 1997 02:20:26 +0000 (02:20 +0000)]
Allow pg_dump to preserve owners of all objects.

27 years agoUpdate LInux and Irix FAQs. REL6_1
Bruce Momjian [Fri, 13 Jun 1997 14:08:48 +0000 (14:08 +0000)]
Update LInux and Irix FAQs.

27 years agosetVarAttrLenForCreateTable(): use varnoold/varoattno instead of
Vadim B. Mikheev [Fri, 13 Jun 1997 03:24:26 +0000 (03:24 +0000)]
setVarAttrLenForCreateTable(): use varnoold/varoattno instead of
varno/varattno.

27 years agoAdd a few words from Vadim and an example on explain output.
Thomas G. Lockhart [Thu, 12 Jun 1997 23:45:54 +0000 (23:45 +0000)]
Add a few words from Vadim and an example on explain output.
Update the update date.

27 years agoFix replace_agg_clause() for unary operators.
Vadim B. Mikheev [Thu, 12 Jun 1997 17:26:15 +0000 (17:26 +0000)]
Fix replace_agg_clause() for unary operators.

27 years agoUpdate psql EXPLAIN help description, from Thomas.
Bruce Momjian [Thu, 12 Jun 1997 16:43:08 +0000 (16:43 +0000)]
Update psql EXPLAIN help description, from Thomas.

27 years agoSomeone forgot about aligning in fastgetiattr()...
Vadim B. Mikheev [Thu, 12 Jun 1997 15:41:52 +0000 (15:41 +0000)]
Someone forgot about aligning in fastgetiattr()...

27 years agoDatum *idatum;
Vadim B. Mikheev [Thu, 12 Jun 1997 15:39:44 +0000 (15:39 +0000)]
Datum *idatum;
      ^

27 years agoUpdate docs for release.
Bruce Momjian [Wed, 11 Jun 1997 14:57:39 +0000 (14:57 +0000)]
Update docs for release.

27 years agoCompare 'char' and 'text' lexicographically.
Vadim B. Mikheev [Wed, 11 Jun 1997 05:20:05 +0000 (05:20 +0000)]
Compare 'char' and 'text' lexicographically.

27 years agoLexicographically compare 'char' and 'text'.
Vadim B. Mikheev [Wed, 11 Jun 1997 05:18:02 +0000 (05:18 +0000)]
Lexicographically compare 'char' and 'text'.

27 years agogeqo_rel_paths(): compute_joinrel_size() shouldn't be called
Vadim B. Mikheev [Wed, 11 Jun 1997 02:44:12 +0000 (02:44 +0000)]
geqo_rel_paths(): compute_joinrel_size() shouldn't be called
for non-JoinPath path! So now we have:
    if ( IsA_JoinPath (cheapest) )
        rel->size = compute_joinrel_size(cheapest);

27 years agoFrom: Darren King <aixssd!darrenk@abs.net>
Marc G. Fournier [Wed, 11 Jun 1997 01:14:49 +0000 (01:14 +0000)]
From: Darren King <aixssd!darrenk@abs.net>
Subject: [PORTS] Makefile.aix patch.

Have to add libc.a to the link when making a shared lib.

27 years agoFrom: Robert Bruccoleri <bruc@bms.com>
Marc G. Fournier [Wed, 11 Jun 1997 01:13:10 +0000 (01:13 +0000)]
From: Robert Bruccoleri <bruc@bms.com>
Subject: [PORTS] Patches for Irix 6.4

I have worked out how to compile PostgreSQL on Irix 6.4 using the -n32 compiler
mode and version 7.1 of the C compiler. (The n32 compiler use 32 bits
addressing,
but allows access to all the instructions in the MIPS4 instruction set.)
There were several problems:

1) The ld command is not referenced as a macro in all the Makefiles. On
this platform, you have to include -n32 on all the ld commands. Makefiles
were changed as needed.

3) Lots of warnings are generated from the compiler. Since the regression
tests worked OK, I didn't attempt to fix them. If anyone wants the compilation
log, please let me know, and I'll email it to you.

The version of postgresql was 970602. Here is Makefile.custom:

CUSTOM_COPT = -O2 -n32
MK_NO_LORDER = 1
LD = ld -n32
CC += -n32

27 years agoFrom: "Brian E. Gallew" <geek+@cmu.edu>
Marc G. Fournier [Wed, 11 Jun 1997 01:05:48 +0000 (01:05 +0000)]
From: "Brian E. Gallew" <geek+@cmu.edu>
Subject: Re: [PORTS] Re: [PATCHES] DG/UX 5.4R11 patches

Comments in boot.sed break DG/UX port

27 years agoFrom: Igor <igor@sba.miami.edu>
Marc G. Fournier [Wed, 11 Jun 1997 01:03:38 +0000 (01:03 +0000)]
From: Igor <igor@sba.miami.edu>
Subject: [PATCHES] sequences display in psql

Well, I am away at Progress training (not Postgres!!) and desided to do
this patch during a break. This will allow listing of sequences in
addition to listing of tables and indicies:
\d would should indicies, tables, and sequences
\ds would show sequences only.

27 years agoFrom: "Eric H. Raskin" <ehr@listworks.com>
Marc G. Fournier [Wed, 11 Jun 1997 01:02:01 +0000 (01:02 +0000)]
From: "Eric H. Raskin" <ehr@listworks.com>
Subject: [PATCHES] DG/UX 5.4R11 patches

1) config.guess -- it doesn't understand that the new default
                   "TARGET_BINARY_INTERFACE" (m88kdgux) is now an ELF
                   format, not BCS.

27 years agoLO patches for loimport/loexport from Raymond Toy
Bruce Momjian [Tue, 10 Jun 1997 13:01:32 +0000 (13:01 +0000)]
LO patches for loimport/loexport from Raymond Toy

27 years ago if ( rel->size <= 0 )
Vadim B. Mikheev [Tue, 10 Jun 1997 07:55:47 +0000 (07:55 +0000)]
    if ( rel->size <= 0 )
            rel->size = compute_rel_size(rel);

27 years ago if ( new_rel->size <= 0 )
Vadim B. Mikheev [Tue, 10 Jun 1997 07:53:55 +0000 (07:53 +0000)]
            if ( new_rel->size <= 0 )
                    new_rel->size = compute_rel_size(new_rel);

27 years agoDuplicates handling...
Vadim B. Mikheev [Tue, 10 Jun 1997 07:28:50 +0000 (07:28 +0000)]
Duplicates handling...

27 years agoUpdate docs for release.
Bruce Momjian [Sat, 7 Jun 1997 18:43:50 +0000 (18:43 +0000)]
Update docs for release.

27 years agoCleanup on xinv# table names.
Bruce Momjian [Sat, 7 Jun 1997 17:34:35 +0000 (17:34 +0000)]
Cleanup on xinv# table names.

27 years agoMake LO patter consistent with psql.
Bruce Momjian [Sat, 7 Jun 1997 05:29:22 +0000 (05:29 +0000)]
Make LO patter consistent with psql.

27 years agoavoid xinv* table name conflict with large objects.
Bruce Momjian [Sat, 7 Jun 1997 05:19:06 +0000 (05:19 +0000)]
avoid xinv* table name conflict with large objects.

27 years agoFrom: David Friend <dfriend@atlsci.atlsci.com>
Marc G. Fournier [Sat, 7 Jun 1997 03:42:17 +0000 (03:42 +0000)]
From: David Friend <dfriend@atlsci.atlsci.com>
Subject: [PATCHES] Patch for INSTAL file.

The following patch does the following:

  - In step 6, recommend doing a database backup if you are upgrading
    from any version of the release, rather than ones before a specific
    date.

  - Added step 22a on regular maintainence.

27 years agoFrom: Igor <igor@sba.miami.edu>
Marc G. Fournier [Fri, 6 Jun 1997 22:08:04 +0000 (22:08 +0000)]
From: Igor <igor@sba.miami.edu>
Subject: [PATCHES] destroydb.1 patch

This is a patch to destroydb man page so that it shows and explains "-i"
option.

27 years agoFrom: Darren King <aixssd!darrenk@abs.net>
Marc G. Fournier [Fri, 6 Jun 1997 22:05:23 +0000 (22:05 +0000)]
From: Darren King <aixssd!darrenk@abs.net>
Subject: [PATCHES] psql and large objects fix

Psql was broken by using "Inv[0-9]+" instead of "xin[xv][0-9]+" to not
show large object files.  Been this way for a long time too. Relic of
an older naming convention, perhaps?

27 years agoFrom: "D'Arcy J.M. Cain" <darcy@druid.net>
Marc G. Fournier [Fri, 6 Jun 1997 22:04:04 +0000 (22:04 +0000)]
From: "D'Arcy J.M. Cain" <darcy@druid.net>
Subject: [PATCHES] backend/storage/ipc/shmem.c

  - strname is only used if assert checking is on

27 years agoFrom: "D'Arcy J.M. Cain" <darcy@druid.net>
Marc G. Fournier [Fri, 6 Jun 1997 22:02:37 +0000 (22:02 +0000)]
From: "D'Arcy J.M. Cain" <darcy@druid.net>
Subject: [PATCHES] backend/lib/fstack.c

  - The FixedStackIsValid so obviously needs to be a macro
  - FixedStackContains only called if assert checking on

27 years agoChange one date away from PST to avoid trouble after daylight savings time.
Thomas G. Lockhart [Fri, 6 Jun 1997 06:13:10 +0000 (06:13 +0000)]
Change one date away from PST to avoid trouble after daylight savings time.

27 years agoChange one date away from PST to avoid trouble after daylight savings time.
Thomas G. Lockhart [Fri, 6 Jun 1997 06:05:53 +0000 (06:05 +0000)]
Change one date away from PST to avoid trouble after daylight savings time.

27 years agolowercase large object table name fix.
Bruce Momjian [Fri, 6 Jun 1997 03:41:16 +0000 (03:41 +0000)]
lowercase large object table name fix.

27 years agogimme_tree(): got rid of compute_rel_size() -
Vadim B. Mikheev [Fri, 6 Jun 1997 03:18:02 +0000 (03:18 +0000)]
gimme_tree(): got rid of compute_rel_size() -
compute_joinrel_size already called by geqo_rel_paths.

27 years agoAdded check is new item successfuly inserted to a page or not.
Vadim B. Mikheev [Fri, 6 Jun 1997 03:11:46 +0000 (03:11 +0000)]
Added check is new item successfuly inserted to a page or not.

27 years agoFrom: Igor <igor@sba.miami.edu>
Marc G. Fournier [Fri, 6 Jun 1997 01:42:02 +0000 (01:42 +0000)]
From: Igor <igor@sba.miami.edu>
Subject: [PATCHES] More psql and libpq patches

Well..these would be the last patches until the release (I hope)...
I ran the regression tests while watching psql under purify, and it did
not leak even one byte.

In this patch:

* Plugged a major leak when PSQL reads files for input (either through
  \i options or through -f option)
* Fixed the one remaining leak in PSQL in not clearing PGresult *results
  everywhere it is supposed to. (Thanks Tymm)
* Fixed A small leak in PSQL not clearing all the PGsettings correctly.
* A not-so-obvious (but small) leak in Libpq when PQsetdb fails for any
  reason.
* Added \n to some Libpq error messages to make them easier to digest..
* Finally, added /* PURIFY */ comment to some of the code indicating
  the reason for why it was added/changed...for future developers.

27 years agoFrom: "Brian E. Gallew" <geek+@cmu.edu>
Marc G. Fournier [Fri, 6 Jun 1997 01:39:24 +0000 (01:39 +0000)]
From: "Brian E. Gallew" <geek+@cmu.edu>

Define USE_POSIX_TIME for dgux port

27 years agoFrom: Phil Nelson <phil@cs.wwu.edu>
Marc G. Fournier [Fri, 6 Jun 1997 01:38:24 +0000 (01:38 +0000)]
From: Phil Nelson <phil@cs.wwu.edu>
Subject: [PATCHES] Patches to allow generic NetBSD support

27 years agoFrom: Phil Nelson <phil@cs.wwu.edu>
Marc G. Fournier [Fri, 6 Jun 1997 01:37:23 +0000 (01:37 +0000)]
From: Phil Nelson <phil@cs.wwu.edu>
Subject: [PATCHES] Added support for NetBSD/pc532.

27 years agoFrom: PortSite <info@portsite.nl>
Marc G. Fournier [Fri, 6 Jun 1997 01:35:57 +0000 (01:35 +0000)]
From: PortSite <info@portsite.nl>

The GNUmakefile in src/test/regress uses `gmake' for
the make program. This should be $(MAKE)

27 years agoFrom: PortSite <info@portsite.nl>
Marc G. Fournier [Fri, 6 Jun 1997 01:34:59 +0000 (01:34 +0000)]
From: PortSite <info@portsite.nl>

Install file says: Type flex -- version
There is a space between -- and version that shouldn't
be there :-(

27 years agoFrom: "D'Arcy J.M. Cain" <darcy@druid.net>
Marc G. Fournier [Fri, 6 Jun 1997 00:38:17 +0000 (00:38 +0000)]
From: "D'Arcy J.M. Cain" <darcy@druid.net>
Subject: [HACKERS] src.original/./backend/lib/fstack.c

Another change I suggested.  I bracket an unused function and add a
return to quiet the compiler.  In addition I added an internal
consistency check.

27 years agoFrom: "D'Arcy J.M. Cain" <darcy@druid.net>
Marc G. Fournier [Fri, 6 Jun 1997 00:37:23 +0000 (00:37 +0000)]
From: "D'Arcy J.M. Cain" <darcy@druid.net>
Subject: [HACKERS] backend/optimizer/geqo/geqo_erx.c

I sent these changes in with a bunch of others.  Some were folded in but
others, like these, were not.  I am not sure why so I am resending this
to the developers list by itself for discussion.

The readon why I suggest these changes is that the compiler can't tell
that minimum_count is initialized before it is used.  The tests that I
add in here will cause an immediate error if it doesn't.  As the comments
below suggest, if it is 100% guaranteed that the variable will always
be initialized then how this is so should be commented here.  I don't
know how much strain the actual test puts on the performance but if it
isn't too much then maybe leave it in for absolute safety anyway.

There are also a few returns just to stop warnings.

27 years agoFix for large objects and case sensitivity, from Raymond Toy.
Bruce Momjian [Thu, 5 Jun 1997 22:59:45 +0000 (22:59 +0000)]
Fix for large objects and case sensitivity, from Raymond Toy.

27 years agobsdi configure detection fix.
Bruce Momjian [Thu, 5 Jun 1997 17:36:43 +0000 (17:36 +0000)]
bsdi configure detection fix.

27 years agoallpaths.c:find_join_paths(): compute_rel_size() shouldn't be called
Vadim B. Mikheev [Thu, 5 Jun 1997 09:33:52 +0000 (09:33 +0000)]
allpaths.c:find_join_paths(): compute_rel_size() shouldn't be called
for join-relations. Sizes already computed by
prune_rel_paths():compute_joinrel_size().

joinrels.c:
<                   if ( _use_right_sided_plans_ )
---
>                   if ( _use_right_sided_plans_ &&
>                               length (outer_rel->relids) > 1 )

 - r_plans are useful when outer_rel is join-relation... It
decreases the size of search space...

27 years agoDefinition for RelationForgetRelation().
Vadim B. Mikheev [Wed, 4 Jun 1997 09:01:49 +0000 (09:01 +0000)]
Definition for RelationForgetRelation().

27 years agoheap_destroy() now calls RelationForgetRelation() to really flush
Vadim B. Mikheev [Wed, 4 Jun 1997 08:59:22 +0000 (08:59 +0000)]
heap_destroy() now calls RelationForgetRelation() to really flush
the relation from the relcache.

27 years agoNew func RelationForgetRelation();
Vadim B. Mikheev [Wed, 4 Jun 1997 08:56:51 +0000 (08:56 +0000)]
New func RelationForgetRelation();
 *         RelationFlushRelation + if the relation is local then get rid of
 *         the relation descriptor from the newly created relation list.

27 years agoUPdate TODO/HISTORY again.
Bruce Momjian [Tue, 3 Jun 1997 20:36:48 +0000 (20:36 +0000)]
UPdate TODO/HISTORY again.

27 years agoUpdate TODO for release
Bruce Momjian [Tue, 3 Jun 1997 20:29:57 +0000 (20:29 +0000)]
Update TODO for release

27 years agoAdd bsdi to template detection.
Bruce Momjian [Tue, 3 Jun 1997 20:08:06 +0000 (20:08 +0000)]
Add bsdi to template detection.

27 years agoUpdate comments for regression testing.
Thomas G. Lockhart [Tue, 3 Jun 1997 15:25:45 +0000 (15:25 +0000)]
Update comments for regression testing.
Include paragraph on upgrading old databases containing path or polygon types.

27 years agoUse error message syntax consistant with other messages from the same
Thomas G. Lockhart [Tue, 3 Jun 1997 14:34:51 +0000 (14:34 +0000)]
Use error message syntax consistant with other messages from the same
reference platform (Linux/gcc-lib/i686).

27 years agoUpdate to reflect new "drop aggregate" syntax and messages.
Thomas G. Lockhart [Tue, 3 Jun 1997 14:31:46 +0000 (14:31 +0000)]
Update to reflect new "drop aggregate" syntax and messages.

27 years agoUpdate to show new path and polygon syntax.
Thomas G. Lockhart [Tue, 3 Jun 1997 14:29:51 +0000 (14:29 +0000)]
Update to show new path and polygon syntax.

27 years agoUpdate path and polygon syntax to new conventions.
Thomas G. Lockhart [Tue, 3 Jun 1997 14:24:12 +0000 (14:24 +0000)]
Update path and polygon syntax to new conventions.

27 years agoUpdate to use new path geometric type syntax.
Thomas G. Lockhart [Tue, 3 Jun 1997 14:21:36 +0000 (14:21 +0000)]
Update to use new path geometric type syntax.
Order in streets.data changed and is now alphabetical (sorry).

27 years agoModify banner to suggest using PST8PDT time zone rather than full specifier
Thomas G. Lockhart [Tue, 3 Jun 1997 14:19:28 +0000 (14:19 +0000)]
Modify banner to suggest using PST8PDT time zone rather than full specifier
string.

27 years agoUpdate to suggest using PST8PDT time zone rather than full time zone string.
Thomas G. Lockhart [Tue, 3 Jun 1997 14:18:38 +0000 (14:18 +0000)]
Update to suggest using PST8PDT time zone rather than full time zone string.
Include section on error message differences.

27 years agoAdd upgradepath(), isoldpath(), upgradepoly() and revertpoly() to allow
Thomas G. Lockhart [Tue, 3 Jun 1997 14:11:28 +0000 (14:11 +0000)]
Add upgradepath(), isoldpath(), upgradepoly() and revertpoly() to allow
upgrading from existing pre-v6.1 path and polygon geometric data types.

27 years agoPut parens around macro arguments for safety per D'Arcy's suggestion.
Thomas G. Lockhart [Tue, 3 Jun 1997 14:07:24 +0000 (14:07 +0000)]
Put parens around macro arguments for safety per D'Arcy's suggestion.

27 years agoAdd upgradepath(), isoldpath(), upgradepoly() and revertpoly() to allow
Thomas G. Lockhart [Tue, 3 Jun 1997 14:01:22 +0000 (14:01 +0000)]
Add upgradepath(), isoldpath(), upgradepoly() and revertpoly() to allow
migration from pre-v6.1 geometric data types.
Only allow new input syntax for paths and polygons.

27 years agoUse finite() macro if available to check returns from pow() and exp().
Thomas G. Lockhart [Tue, 3 Jun 1997 13:58:06 +0000 (13:58 +0000)]
Use finite() macro if available to check returns from pow() and exp().

27 years agoFix a few DATEDEBUG print statements.
Thomas G. Lockhart [Tue, 3 Jun 1997 13:56:32 +0000 (13:56 +0000)]
Fix a few DATEDEBUG print statements.

27 years agocc1: warnings being treated as errors
Vadim B. Mikheev [Tue, 3 Jun 1997 06:32:56 +0000 (06:32 +0000)]
cc1: warnings being treated as errors
dt.c: In function `timespan2tm':
dt.c:1722: warning: unused variable `funit'
dt.c:1722: warning: unused variable `iunit'

-> got rid of them.

27 years agoSET geqo TO 'on' restores _use_geqo_rels_ to GEQO_RELS, not
Vadim B. Mikheev [Tue, 3 Jun 1997 06:29:31 +0000 (06:29 +0000)]
SET geqo TO 'on' restores _use_geqo_rels_ to GEQO_RELS, not
to last specified with 'on' #.
What is better ?

27 years agocc1: warnings being treated as errors
Vadim B. Mikheev [Tue, 3 Jun 1997 06:23:24 +0000 (06:23 +0000)]
cc1: warnings being treated as errors
remove.c: In function `RemoveAggregate':
remove.c:413: warning: unused variable `typename'

-> got rid of it.

27 years agoSET var TO '...'
Vadim B. Mikheev [Tue, 3 Jun 1997 06:19:11 +0000 (06:19 +0000)]
SET var TO '...'
        ^^ - added

27 years agocc1: warnings being treated as errors
Vadim B. Mikheev [Tue, 3 Jun 1997 06:17:34 +0000 (06:17 +0000)]
cc1: warnings being treated as errors
psql.c: In function `HandleSlashCmds':
psql.c:1141: warning: `optarg3' might be used uninitialized in this function
psql.c:1157: warning: `optarg3' might be used uninitialized in this function

-> char           *optarg3 = NULL;

27 years agoCleanups.
Vadim B. Mikheev [Tue, 3 Jun 1997 04:14:31 +0000 (04:14 +0000)]
Cleanups.

27 years agoAdd \dt and \di to psql help.
Bruce Momjian [Tue, 3 Jun 1997 03:35:46 +0000 (03:35 +0000)]
Add \dt and \di to psql help.

27 years agoNew description of currval.
Vadim B. Mikheev [Tue, 3 Jun 1997 03:19:08 +0000 (03:19 +0000)]
New description of currval.

27 years ago#define GEQO_RELS 6 (not 7)
Vadim B. Mikheev [Tue, 3 Jun 1997 03:15:50 +0000 (03:15 +0000)]
#define GEQO_RELS 6 (not 7)

27 years agoFix deleted tuples re-incarnation possible when vacuum transaction
Vadim B. Mikheev [Tue, 3 Jun 1997 01:29:26 +0000 (01:29 +0000)]
Fix deleted tuples re-incarnation possible when vacuum transaction
start time equal to tuple->t_tmax.

Privent shrinking if there are tuples modifyed by running transactions
(it concerns system relations only, currently).

27 years ago*** empty log message ***
Edmund Mergl [Mon, 2 Jun 1997 19:42:14 +0000 (19:42 +0000)]
*** empty log message ***

27 years agoUpdate man and psqlHelp for new SET GEQO=# option.
Bruce Momjian [Mon, 2 Jun 1997 14:12:40 +0000 (14:12 +0000)]
Update man and psqlHelp for new SET GEQO=# option.

27 years agoAllow for EOF or \0 as input() return from lex.
Bruce Momjian [Mon, 2 Jun 1997 13:55:19 +0000 (13:55 +0000)]
Allow for EOF or \0 as input() return from lex.

27 years agoOracle like currval behaviour.
Vadim B. Mikheev [Mon, 2 Jun 1997 11:22:52 +0000 (11:22 +0000)]
Oracle like currval behaviour.

27 years ago#define GEQO_RELS 7
Vadim B. Mikheev [Mon, 2 Jun 1997 11:19:33 +0000 (11:19 +0000)]
#define GEQO_RELS 7
moved from geqo.h to internal.h.

27 years agoUse GEQO if _use_geqo_ is TRUE and # of relations is >= _use_geqo_rels_
Vadim B. Mikheev [Mon, 2 Jun 1997 11:14:40 +0000 (11:14 +0000)]
Use GEQO if _use_geqo_ is TRUE and # of relations is >= _use_geqo_rels_
(both are settable via SET geqo TO ...).

27 years agoSET var TO 'a=b'
Vadim B. Mikheev [Mon, 2 Jun 1997 11:00:57 +0000 (11:00 +0000)]
SET var TO 'a=b'
             ^^ is supported by get_token now.
(SET geqo TO 'on=XXX' works now).

27 years agoFrom: Igor <igor@sba.miami.edu>
Marc G. Fournier [Mon, 2 Jun 1997 03:04:50 +0000 (03:04 +0000)]
From: Igor <igor@sba.miami.edu>
Subject: [PATCHES] patch for a memory leak

Well...I screwed up and posted the wrong patch for psql originally..
The patch for that patch wposted below will fix it..

27 years agoFrom: David Friend <dfriend@atlsci.atlsci.com>
Marc G. Fournier [Mon, 2 Jun 1997 03:02:43 +0000 (03:02 +0000)]
From: David Friend <dfriend@atlsci.atlsci.com>
Subject: [PATCHES] INSTALL patch

This patch makes the following changes to the INSTALL instructions:
  - Before step 1, describe disk space requirements.
  - Step 1 now defines a "tested" platform.
  - Add step 3a on checking for disk space.
  - Added new step 27 asking for feedback.

27 years agoFrom: Igor <igor@sba.miami.edu>
Marc G. Fournier [Mon, 2 Jun 1997 02:53:00 +0000 (02:53 +0000)]
From: Igor <igor@sba.miami.edu>
Subject: [PATCHES] Another destroydb patch

This is a patch to my previous destroydb patch cause some people wanted
slightly different behavior. After this patch is applied, destroydb
will destroy a database as usual, but if added -i flag (which could be
aliased like rm -i) would ask for confirmation.

27 years agoFrom: Igor <igor@sba.miami.edu>
Marc G. Fournier [Mon, 2 Jun 1997 02:52:06 +0000 (02:52 +0000)]
From: Igor <igor@sba.miami.edu>
Subject: [PATCHES] pg_dump memory leak patch

This patch fixes a HUGE memory leak problem in pg_dump.
Pretty much anything that was allocated was never freed and Purify
reported about 40% possible memory leak and 6% actual leak. I added
functions to clear out all the allocated structures. After the patch
Purify returns 0 for number of bytes leaked...

27 years agoOrdering of libraries changed so that -lbsd is *after* -lm
Marc G. Fournier [Sun, 1 Jun 1997 16:25:34 +0000 (16:25 +0000)]
Ordering of libraries changed so that -lbsd is *after* -lm

Fixes a problem Darren reports with AIX, and doesn't seem to break either
FreeBSD or Linux(David?)...

27 years agoFrom: Darren King <aixssd!darrenk@abs.net>
Marc G. Fournier [Sun, 1 Jun 1997 15:53:24 +0000 (15:53 +0000)]
From: Darren King <aixssd!darrenk@abs.net>
Subject: [PATCHES] psql - \dt,\di commands.

I sent this a couple of months ago in re a request by Maxim
Kozin, but I had the patch reversed, creating some confusion
over applying it.

Here's a more complete version.

Adds \dt to list only tables/views and \di to list only
indicies.  \d will still work as before.

27 years agoFrom: Phil Nelson <phil@cs.wwu.edu>
Marc G. Fournier [Sun, 1 Jun 1997 15:51:10 +0000 (15:51 +0000)]
From: Phil Nelson <phil@cs.wwu.edu>
Subject: [PATCHES] Support for NetBSD/sparc

The following is a patch to allow BSD44_derived to support NetBSD/sparc.

27 years agoFrom: Darren King <aixssd!darrenk@abs.net>
Marc G. Fournier [Sun, 1 Jun 1997 15:50:08 +0000 (15:50 +0000)]
From: Darren King <aixssd!darrenk@abs.net>
Subject: [PATCHES] aix.h needs POSIX...

27 years agoFrom: Robert Bruccoleri <bruc@bms.com>
Marc G. Fournier [Sun, 1 Jun 1997 15:41:40 +0000 (15:41 +0000)]
From: Robert Bruccoleri <bruc@bms.com>

One more Irix related patch for Dynamic Linking

27 years agoFrom: Igor <igor@sba.miami.edu>
Marc G. Fournier [Sun, 1 Jun 1997 15:40:08 +0000 (15:40 +0000)]
From: Igor <igor@sba.miami.edu>
Subject: [PATCHES] destroydb patch

I am including a patch for destroydb to ask for confirmation before
deleting databases (after I accidentally deleted mine)...destroydb -y
would force delete without any confirmation.

27 years agoFrom: Igor <igor@sba.miami.edu>
Marc G. Fournier [Sun, 1 Jun 1997 15:39:08 +0000 (15:39 +0000)]
From: Igor <igor@sba.miami.edu>
Subject: [PATCHES] memory leak patches in libpq and psql

A couple of small memory leak patches (detected with Purify) primarily
in libpq.

* Fixed (NULL) border problem in psql (run psql, do \m, then select
  something from a table...row separators will be nulls)
* Fixed memory leak with the abovementioned border not being freed
  properly.
* Fixed memory leak in freePGconn() not freeing conn->port
* Fixed up PQclear() to free parts of PGresult only if these
  parts are not null.
* Fixed a decent memory leak that occured after executing every command
  in psql. PGresult *results was not freed most of the time.

There is still a leak being detected (2 bytes) in readline functions, but
I think this is old readline library. I will install new one and test it.

27 years agoAdded \n to error message.
Bruce Momjian [Sun, 1 Jun 1997 04:59:25 +0000 (04:59 +0000)]
Added \n to error message.

27 years agoAdd R_PLANS to psql help, and SET cleanup.
Bruce Momjian [Sun, 1 Jun 1997 04:53:44 +0000 (04:53 +0000)]
Add R_PLANS to psql help,  and SET cleanup.