]> granicus.if.org Git - postgresql/log
postgresql
27 years agoEnable new date and time definitions to allow Solaris and Irix -O2 compilation.
Thomas G. Lockhart [Fri, 23 May 1997 05:10:03 +0000 (05:10 +0000)]
Enable new date and time definitions to allow Solaris and Irix -O2 compilation.
Move date and time field type labels to less than 32 to allow use as masks.

27 years agoAllocateFile():
Vadim B. Mikheev [Fri, 23 May 1997 02:56:48 +0000 (02:56 +0000)]
AllocateFile():
   fdleft = pg_nofile() - allocatedFiles - nfile;
looks more realistic, but too noisy -
   fdleft = pg_nofile() - allocatedFiles;
restored.

27 years agoOnly free memory if environment value is replaced.
Bruce Momjian [Fri, 23 May 1997 01:53:42 +0000 (01:53 +0000)]
Only free memory if environment value is replaced.

27 years agoComment on fix added.
Bruce Momjian [Fri, 23 May 1997 00:20:20 +0000 (00:20 +0000)]
Comment on fix added.

27 years agoPreserve putenv() memory in psql \connect user fix.
Bruce Momjian [Thu, 22 May 1997 23:57:27 +0000 (23:57 +0000)]
Preserve putenv() memory in psql \connect user fix.

27 years agoFix backslash commands broken when \connect user added.
Bruce Momjian [Thu, 22 May 1997 18:55:40 +0000 (18:55 +0000)]
Fix backslash commands broken when \connect user added.

27 years agoRelationPurgeLocalRelation():
Vadim B. Mikheev [Thu, 22 May 1997 17:24:20 +0000 (17:24 +0000)]
RelationPurgeLocalRelation():
            /*
             * RelationFlushRelation () below will flush relation information
             * from the cache. We must call smgrclose to flush relation
             * information from SMGR & FMGR, too. We assume that for temp
             * relations smgrunlink is already called by heap_destroyr
             * and we skip smgrclose for them.          - vadim 05/22/97
             */
            smgrclose(reln->rd_rel->relsmgr, reln);

 - it avoids memory leaks in SMGR & VFD.

RelationFlushRelation():
   there is no more call FileInvalidate(RelationGetSystemPort(relation));
   - invalid (FileInvalidate() expects File, not SMGR' fd)
   - unuseful anyway.

27 years ago1. Fix md memory leak:
Vadim B. Mikheev [Thu, 22 May 1997 17:08:35 +0000 (17:08 +0000)]
1. Fix md memory leak:
   mdunlink() and mdclose() (too !!!) now free MdfdVec for relation
   and add it to free list, so it may be re-used for another relation
   later.
2. Fix VFD-manager memory leak (found by Massimo ... and me):
   mdunlink() has to call FileUnlink() to free allocation for fileName
   and add the Vfd slot to the free list.

27 years ago1. Cleanup (no more FreeFd - unuseful; others).
Vadim B. Mikheev [Thu, 22 May 1997 16:51:19 +0000 (16:51 +0000)]
1. Cleanup (no more FreeFd - unuseful; others).
2. FreeFile() has to do nothing with nfile (# of files opened
   by VFD manager).

27 years agogist.h:
Vadim B. Mikheev [Thu, 22 May 1997 16:09:57 +0000 (16:09 +0000)]
gist.h:
/*
** You can have as many strategies as you please in GiSTs, as
** long as your consistent method can handle them
*/
#define GISTNStrategies                 100
                                        ^^^
- too big number:

strat.h->StrategyEvaluationData->StrategyExpression  expression[12]
                                                                ^^
 - so 12 is real max # of strategies, or StrategyEvaluationIsValid
crashes backend (called if CASSER defined).

27 years ago1. Pass GISTENTRYs to giststate->penaltyFn by pointers, not by vals.
Vadim B. Mikheev [Thu, 22 May 1997 16:01:33 +0000 (16:01 +0000)]
1. Pass GISTENTRYs to giststate->penaltyFn by pointers, not by vals.
2. Re-initialize keys in gistrescan (if gist used in inner scan).

27 years agoFrom: Darren King <aixssd!darrenk@abs.net>
Marc G. Fournier [Thu, 22 May 1997 00:24:07 +0000 (00:24 +0000)]
From: Darren King <aixssd!darrenk@abs.net>
To: pgsql-patches@postgreSQL.org
Subject: [PATCHES] DROP AGGREGATE gram.y typo...

Somehow I dropped a comma in the gram.y part (line 129) of my
patch for drop aggregate.  Here's a correct patch for gram.y.

PS. I hope I got the right comma, manually applied :) (scrappy)

27 years agoFrom: Darren King <aixssd!darrenk@abs.net>
Marc G. Fournier [Thu, 22 May 1997 00:17:24 +0000 (00:17 +0000)]
From: Darren King <aixssd!darrenk@abs.net>
Subject: [PATCHES] DROP AGGREGATE patch/fix.

Here's a patch that fixes the DROP AGGREGATE command to delete
the desired aggregate for a specific type.

27 years agoOops, missed the commit on this one by Darren King also...new Makefile.aix
Marc G. Fournier [Thu, 22 May 1997 00:12:03 +0000 (00:12 +0000)]
Oops, missed the commit on this one by Darren King also...new Makefile.aix

27 years agoFrom: Darren King <aixssd!darrenk@abs.net>
Marc G. Fournier [Thu, 22 May 1997 00:11:29 +0000 (00:11 +0000)]
From: Darren King <aixssd!darrenk@abs.net>
Subject: [PATCHES] AIX make patch resubmitted.

Misc patches for AIX from Darren:

1)  New src/makefiles/Makefile.aix  This patch should only be
    applied if the following patch (4) is applied to backend/Makefile!
    Still looking into having configure determine the last line to do
    the shared link.  The 325 code will work for 41, so I put that in
    as the default.  Included a commented out 41 line for completeness.

*and*

4)  Patch the backend Makefile.  I've reviewed this patch with respect to the
    other ports that use MAKE_EXPORTS (svr4 and univel) as closely as I could
    and I don't see where it will break them.  If it does, please let me know
    and I'll rework it somehow.

27 years agoFrom: Darren King <aixssd!darrenk@abs.net>
Marc G. Fournier [Thu, 22 May 1997 00:07:30 +0000 (00:07 +0000)]
From: Darren King <aixssd!darrenk@abs.net>
Subject: [PATCHES] Re: [PORTS] AIX 6.1 fixes...

Here are the patches for the two things that wouldn't make it thru the AIX
compiler.  The geo_ops.c change is harmless I believe.  The nbtcompare.c patch
fixes me, but I don't know about any other ports.  Maybe wait on that one
until Vadim decides what to do about the unsigned vs signed chars varlena
issue.

27 years agoUpdated pg_dumpall and psql to preserve database owners.
Bruce Momjian [Wed, 21 May 1997 03:12:23 +0000 (03:12 +0000)]
Updated pg_dumpall and psql to preserve database owners.

27 years agoAdd SRCDIR to lextest
Bruce Momjian [Wed, 21 May 1997 00:45:24 +0000 (00:45 +0000)]
Add SRCDIR to lextest

27 years agoFix for lextest return value.
Bruce Momjian [Tue, 20 May 1997 21:35:16 +0000 (21:35 +0000)]
Fix for lextest return value.

27 years agoLittle memmory leak in RelationFlushRelation() in freeing
Vadim B. Mikheev [Tue, 20 May 1997 11:41:38 +0000 (11:41 +0000)]
Little memmory leak in RelationFlushRelation() in freeing
relation->rd_att (relation' TupleDesc).

27 years agoDefine FREE(x) as pfree.
Vadim B. Mikheev [Tue, 20 May 1997 11:37:33 +0000 (11:37 +0000)]
Define FREE(x) as pfree.

27 years agoShouldn't we use palloc instead of malloc ?
Vadim B. Mikheev [Tue, 20 May 1997 11:35:50 +0000 (11:35 +0000)]
Shouldn't we use palloc instead of malloc ?
Because of
 *      resetpsort  - resets (frees) malloc'd memory for an aborted Xaction
 *
 *      Not implemented yet.

27 years ago1. LocalBufferSync(): set nextFreeLocalBuf to 0 - we're freeing
Vadim B. Mikheev [Tue, 20 May 1997 11:30:32 +0000 (11:30 +0000)]
1. LocalBufferSync(): set nextFreeLocalBuf to 0 - we're freeing
   all local buffers @ xact commit, so accordingly nextFreeLocalBuf
   is first local buffer now.
   It helps to avoid unnecessary local buffer allocations in LocalBufferAlloc()
   latter ("memmory leaks" in 'order by').
2. ResetLocalBufferPool() lost allocated local buffers:

   memset(LocalBufferDescriptors, 0, sizeof(BufferDesc) * NLocBuffer);

   (local buffers leak @ xact aborts).

27 years agoConsider right-sided plans if _use_right_sided_plans_ is true.
Vadim B. Mikheev [Tue, 20 May 1997 10:37:26 +0000 (10:37 +0000)]
Consider right-sided plans if _use_right_sided_plans_ is true.

27 years agoNew VAR r_plans added to enable turn ON/OFF
Vadim B. Mikheev [Tue, 20 May 1997 10:31:42 +0000 (10:31 +0000)]
New VAR r_plans added to enable turn ON/OFF
using right-sided plans.

27 years agoInitialize internal keys if rtree used in inner scan.
Vadim B. Mikheev [Tue, 20 May 1997 10:29:30 +0000 (10:29 +0000)]
Initialize internal keys if rtree used in inner scan.

27 years agoAdded fcvt() prot for bsdi.
Bruce Momjian [Tue, 20 May 1997 03:39:02 +0000 (03:39 +0000)]
Added fcvt() prot for bsdi.
Made PQsetdb() and PQfnumber() case-insensitive.
Removed attempt to set table ownership via pg_dumpall.

27 years agoFrom: Darren King <aixssd!darrenk@abs.net>
Marc G. Fournier [Tue, 20 May 1997 03:00:17 +0000 (03:00 +0000)]
From: Darren King <aixssd!darrenk@abs.net>
Subject: [PATCHES] AIX 6.2 make patch.

New template files to replace the old AIX template

27 years agoRemove create_database interactive prohibition from manual.
Bruce Momjian [Mon, 19 May 1997 14:23:08 +0000 (14:23 +0000)]
Remove create_database interactive prohibition from manual.

27 years agoAdd Makefile.global to lextest makefile.
Bruce Momjian [Mon, 19 May 1997 14:19:13 +0000 (14:19 +0000)]
Add Makefile.global to lextest makefile.

27 years agoMulti-column indices creation is now supported in normal way
Vadim B. Mikheev [Mon, 19 May 1997 04:31:18 +0000 (04:31 +0000)]
Multi-column indices creation is now supported in normal way
(CREATE INDEX ...)

27 years agoFrom: Olaf Mittelstaedt <MSTAEDT@va-sigi.va.fh-ulm.de>
Marc G. Fournier [Mon, 19 May 1997 03:49:39 +0000 (03:49 +0000)]
From: Olaf Mittelstaedt <MSTAEDT@va-sigi.va.fh-ulm.de>

Minor patches to geo_ops.c to clean up compile under AIX 4.1.3

27 years agoThese two files got reversed somehow... -K PIC is a cc'ism and -fPIC is a
Marc G. Fournier [Mon, 19 May 1997 03:21:55 +0000 (03:21 +0000)]
These two files got reversed somehow... -K PIC is a cc'ism and -fPIC is a
gcc'ism

27 years agoadded const declaration in form() E.Mergl
Edmund Mergl [Sat, 17 May 1997 16:25:57 +0000 (16:25 +0000)]
added const declaration in form()  E.Mergl

27 years agoadded const declaration E.Mergl
Edmund Mergl [Sat, 17 May 1997 16:23:06 +0000 (16:23 +0000)]
added const declaration  E.Mergl

27 years agoAdd comments to assist with installation.
Thomas G. Lockhart [Sat, 17 May 1997 15:17:30 +0000 (15:17 +0000)]
Add comments to assist with installation.

27 years agoLinux-specific (RedHat variant) postgres system startup routine.
Thomas G. Lockhart [Sat, 17 May 1997 15:08:32 +0000 (15:08 +0000)]
Linux-specific (RedHat variant) postgres system startup routine.
Initial version.

27 years agoAdd information on regression testing and Linux ports.
Thomas G. Lockhart [Sat, 17 May 1997 14:26:30 +0000 (14:26 +0000)]
Add information on regression testing and Linux ports.
Fix typos in TZ setting for regression testing and in gmake redirection.

27 years agoInitial 64-bit integer package.
Thomas G. Lockhart [Sat, 17 May 1997 14:24:09 +0000 (14:24 +0000)]
Initial 64-bit integer package.

27 years agoRemove troublesome type coersions from the char8 return statements.
Thomas G. Lockhart [Sat, 17 May 1997 06:20:34 +0000 (06:20 +0000)]
Remove troublesome type coersions from the char8 return statements.
Noted in trying to port to AIX.

27 years agoSpiff up description of the regression tests and outcomes.
Thomas G. Lockhart [Sat, 17 May 1997 06:17:45 +0000 (06:17 +0000)]
Spiff up description of the regression tests and outcomes.

27 years agoInclude information for reset, set, and show commands.
Thomas G. Lockhart [Sat, 17 May 1997 06:16:34 +0000 (06:16 +0000)]
Include information for reset, set, and show commands.

27 years agoFrom: David Friend <dfriend@atlsci.atlsci.com>
Marc G. Fournier [Sat, 17 May 1997 03:02:04 +0000 (03:02 +0000)]
From: David Friend <dfriend@atlsci.atlsci.com>

Add an entry for the Sparc/Linux port in .similar

27 years agoFrom: David Friend <dfriend@atlsci.atlsci.com>
Marc G. Fournier [Sat, 17 May 1997 03:00:24 +0000 (03:00 +0000)]
From: David Friend <dfriend@atlsci.atlsci.com>

Here are the latest changes to the INSTALL instructions.

The main changes are:
  - Step 5, on flex
  - Steps 18 and 19, on regression tests
  - Step 22 c) on starting postmaster on bootup on FreeBSD
  - Added porting notes for SPARC/Linux at end.

If there is time, Thomas should review step 19.

27 years agoImprove informational messages for "show" command responses.
Thomas G. Lockhart [Fri, 16 May 1997 07:24:13 +0000 (07:24 +0000)]
Improve informational messages for "show" command responses.

27 years agoFix expected output for datetime and abstime to/from date conversions.
Thomas G. Lockhart [Fri, 16 May 1997 07:22:28 +0000 (07:22 +0000)]
Fix expected output for datetime and abstime to/from date conversions.
This results from improvements in datetime.c which ensures that the
 conversions are done in local time rather than GMT.

27 years agoFix datetime and abstime conversions to and from date.
Thomas G. Lockhart [Fri, 16 May 1997 07:19:50 +0000 (07:19 +0000)]
Fix datetime and abstime conversions to and from date.
Bring optional new-storage date and time up to date and test.
This new storage format should fix the "Sparc gcc -O2 bug".
(Enable new code with USE_NEW_DATE and USE_NEW_TIME in dt.h)

27 years agoAdd documentation for reset, set, and show, and cross-reference in built-in.
Thomas G. Lockhart [Fri, 16 May 1997 07:13:54 +0000 (07:13 +0000)]
Add documentation for reset, set, and show, and cross-reference in built-in.

27 years agoModify lextest and GNUmakefile so that if the test does fail, the
Marc G. Fournier [Fri, 16 May 1997 02:00:03 +0000 (02:00 +0000)]
Modify lextest and GNUmakefile so that if the test does fail, the
make doesn't proceed

27 years agoHave Make process exit if lextest fails
Marc G. Fournier [Fri, 16 May 1997 01:09:39 +0000 (01:09 +0000)]
Have Make process exit if lextest fails

27 years agoFrom: Robert E. Bruccoleri <bruc@bms.com>
Marc G. Fournier [Thu, 15 May 1997 22:55:35 +0000 (22:55 +0000)]
From: Robert E. Bruccoleri <bruc@bms.com>
Fixes:

Shared objects are not linked correctly

27 years agoFrom: David Friend <dfriend@atlsci.atlsci.com>
Marc G. Fournier [Thu, 15 May 1997 22:16:45 +0000 (22:16 +0000)]
From: David Friend <dfriend@atlsci.atlsci.com>
Subject: [PATCHES] Patch for INSTALL

The following patch makes a number of modifications to file INSTALL.
Among other things, it restores some platform specific notes I deleted.
It also no longer requires a separate compile for the regression tests.

Please note that this patch already incorporates the patch Hal Snyder
submitted on Monday.  Do not apply Hal's patch.

27 years agoMore TODO/HISTORY updates
Bruce Momjian [Wed, 14 May 1997 21:56:13 +0000 (21:56 +0000)]
More TODO/HISTORY updates

27 years agoUPdate TODO and HIstory for new release.
Bruce Momjian [Wed, 14 May 1997 20:18:53 +0000 (20:18 +0000)]
UPdate TODO and HIstory for new release.

27 years agoAllow pg_dumpall to preserve database ownership.
Bruce Momjian [Wed, 14 May 1997 19:49:34 +0000 (19:49 +0000)]
Allow pg_dumpall to preserve database ownership.

27 years agoRemove README.flex and make lextest point to INSTALL.
Bruce Momjian [Wed, 14 May 1997 17:12:30 +0000 (17:12 +0000)]
Remove README.flex and make lextest point to INSTALL.

27 years agolextest Makefile cleanup
Bruce Momjian [Wed, 14 May 1997 04:46:47 +0000 (04:46 +0000)]
lextest Makefile cleanup

27 years agoRename new float and int conversion routines to avoid conflicts with
Thomas G. Lockhart [Wed, 14 May 1997 04:35:10 +0000 (04:35 +0000)]
Rename new float and int conversion routines to avoid conflicts with
 system calls on AIX (and probably other machines too).

27 years agoAdd test for flex bug as part of make, and point them to README.flex.
Bruce Momjian [Wed, 14 May 1997 03:32:40 +0000 (03:32 +0000)]
Add test for flex bug as part of make, and point them to README.flex.

27 years agoUpdate FAQ and TODO
Bruce Momjian [Wed, 14 May 1997 03:20:26 +0000 (03:20 +0000)]
Update FAQ and TODO

27 years agoAdded:
Vadim B. Mikheev [Wed, 14 May 1997 01:38:34 +0000 (01:38 +0000)]
Added:
       Note: currently, only btree access method supports  multi-
       attribute indices.  Up to 7 keys may be specified.

27 years agoFrom: "Brian E. Gallew" <geek+@cmu.edu>
Marc G. Fournier [Tue, 13 May 1997 22:13:33 +0000 (22:13 +0000)]
From: "Brian E. Gallew" <geek+@cmu.edu>
Subject: [PORTS] minor fix for DGUX port

src/include/port/dgux.h needs the following three lines appended:

#ifndef         BYTE_ORDER
#define         BYTE_ORDER      BIG_ENDIAN
#endif

I believe this to be correct for DG/UX on M88k processors.  I don't have one of
the new Intel-based boxes to check on.

27 years agoUpdate manual pages for vacuum and create index for Vadim.
Bruce Momjian [Tue, 13 May 1997 04:41:54 +0000 (04:41 +0000)]
Update manual pages for vacuum and create index for Vadim.

27 years agoFix return value for tm2datetime to properly indicate failure.
Thomas G. Lockhart [Tue, 13 May 1997 04:26:07 +0000 (04:26 +0000)]
Fix return value for tm2datetime to properly indicate failure.

27 years agofix for sizeof pointed out by Ed Buddington
Bruce Momjian [Tue, 13 May 1997 01:46:00 +0000 (01:46 +0000)]
fix for sizeof pointed out by Ed Buddington

27 years agoAdded _readAggreg() to work with T_Aggreg type.
Vadim B. Mikheev [Mon, 12 May 1997 07:17:23 +0000 (07:17 +0000)]
Added _readAggreg() to work with T_Aggreg type.

27 years agoUpdate to current information for upcoming v6.1 production release.
Thomas G. Lockhart [Sun, 11 May 1997 15:46:19 +0000 (15:46 +0000)]
Update to current information for upcoming v6.1 production release.

27 years agoMore tables are listed in the user-defined relations from other regression
Thomas G. Lockhart [Sun, 11 May 1997 15:45:10 +0000 (15:45 +0000)]
More tables are listed in the user-defined relations from other regression
 tests, including new tests.

27 years agoAdd inter-type regression tests for geometry, date/time, and numbers.
Thomas G. Lockhart [Sun, 11 May 1997 15:42:09 +0000 (15:42 +0000)]
Add inter-type regression tests for geometry, date/time, and numbers.
Add regression tests for circles, line segments, and paths.
Modify regression tests to allow GEQ optimizer (order results).

27 years agoAdd type conversion functions between floats and integers.
Thomas G. Lockhart [Sun, 11 May 1997 15:19:33 +0000 (15:19 +0000)]
Add type conversion functions between floats and integers.
Include some additional path functions which were coded but omitted here.
Add translation and rotation/scaling operators for some geometric types.
Fix bugs in some geometry comparison operator declarations.

27 years agoAdd a few type conversion functions.
Thomas G. Lockhart [Sun, 11 May 1997 15:13:49 +0000 (15:13 +0000)]
Add a few type conversion functions.
Pass an additional argument for date/time formatting to better handle timezones.

27 years agoFix timezone manipulation code to avoid crashes on some machines.
Thomas G. Lockhart [Sun, 11 May 1997 15:11:47 +0000 (15:11 +0000)]
Fix timezone manipulation code to avoid crashes on some machines.
Add type conversion functions for floating point numbers.
Check for zero in unary minus floating point code (IEEE allows an
 explicit negative zero which looks ugly in a query result!).
Ensure circle type has non-negative radius.

27 years agoOops, one of DAvid's patches didn't quite make it in cleanly, so a little
Marc G. Fournier [Sun, 11 May 1997 06:27:07 +0000 (06:27 +0000)]
Oops, one of DAvid's patches didn't quite make it in cleanly, so a little
manual intervention required :)

27 years agoFrom: David Friend <dfriend@atlsci.atlsci.com>
Marc G. Fournier [Sun, 11 May 1997 06:18:33 +0000 (06:18 +0000)]
From: David Friend <dfriend@atlsci.atlsci.com>
Subject: [PATCHES] Documentation update

This patch updates some of the documentation that comes with the
distribution.  The following files are updated:
        COPYRIGHT
        README
        doc/README.flex
        doc/README.support
        doc/bug.template

27 years agoFrom: Edmund Mergl <E.Mergl@bawue.de>
Marc G. Fournier [Fri, 9 May 1997 03:28:54 +0000 (03:28 +0000)]
From: Edmund Mergl <E.Mergl@bawue.de>
Subject: [PATCHES] libpq patch

Hi,

here is a small patch which fixes two problems:

1. libpq/libpq-fe.h:

somehow disappeared the line

#define DefaultOption ""

now compilation stops with an error complainig an
unknown DefaultOption (970508).

2. Same patch as I sent already twice, but it never made it
  into the source tree:  there is no default value for
  AuthType and Password. This way any libpq-application
  (i.e. perl-scripts) which use the function PQconnectdb
  will break with PostgreSQL-6.1. The patch simply uses
  an empty string as default value.

27 years agoFrom: Keith Parks <emkxp01@mtcc.demon.co.uk>
Marc G. Fournier [Fri, 9 May 1997 03:26:56 +0000 (03:26 +0000)]
From: Keith Parks <emkxp01@mtcc.demon.co.uk>
Subject: [PATCHES] Patches for boolean, timespan and reltime regression tests.

Hi All,

Here are a couple of patches to the regression tests to introduce
some specific ordering to the results.

I've only made changes to the queries that were exhibiting differences
on my regression runs.

This will also have the side effect of testing the ordering code for
the boolean and some of the time types.

27 years agoFix typechecking problem pointed out by Thomas.
Bruce Momjian [Thu, 8 May 1997 02:45:53 +0000 (02:45 +0000)]
Fix typechecking problem pointed out by Thomas.

27 years agoUpdate for bsdi
Bruce Momjian [Thu, 8 May 1997 02:30:23 +0000 (02:30 +0000)]
Update for bsdi

27 years agoFrom: David Friend <dfriend@atlsci.atlsci.com>
Marc G. Fournier [Wed, 7 May 1997 03:15:36 +0000 (03:15 +0000)]
From: David Friend <dfriend@atlsci.atlsci.com>
Subject: [PATCHES] New INSTALL file.

I have created a much more comprehensive version of the
/usr/src/pgsql/INSTALL file.  It should replace the current 970428 version
of this file.

27 years agoFrom: "Martin J. Laubach" <mjl@CSlab.tuwien.ac.at>
Marc G. Fournier [Wed, 7 May 1997 03:13:50 +0000 (03:13 +0000)]
From: "Martin J. Laubach" <mjl@CSlab.tuwien.ac.at>
Subject: [PATCHES] libpq SET var TO patch

  One last, I hope. This one corrects a bogus format string, and
actually sends the contents of PG_DATESTYLE to the backend. That
means, you can do a setenv PG_DATESTYLE 'iso', and your libpq
will pick that up and tell the backend.

27 years agoFrom: "Paul M. Aoki" <aoki@CS.Berkeley.EDU>
Marc G. Fournier [Wed, 7 May 1997 03:12:46 +0000 (03:12 +0000)]
From: "Paul M. Aoki" <aoki@CS.Berkeley.EDU>
Subject: [PATCHES] port patch: ultrix4

ultrix4 doesn't compile without this.  this also fixes a problem
with dynamic loading (ultrix relocatable objects must be loaded
with -G 0).

27 years agoFrom: Keith Parks <emkxp01@mtcc.demon.co.uk>
Marc G. Fournier [Wed, 7 May 1997 02:59:59 +0000 (02:59 +0000)]
From: Keith Parks <emkxp01@mtcc.demon.co.uk>
Subject: [PATCHES] Three small patches.

Hi,

Here are 3 small patches to the postgreSQL source sup'd on
the 6th May 1997.

The 1st 2 fix the shell backslash "c" handling used to suppress
the newline on some unix shells. (The \c needs to be inside quote.)

The 3rd may or may not be the correct way to fix the missing
define of INDEX_MAX_KEYS in pg_dump.h

27 years agoFrom: Erich Stamberger <eberger@gewi.kfunigraz.ac.at>
Marc G. Fournier [Wed, 7 May 1997 02:46:45 +0000 (02:46 +0000)]
From: Erich Stamberger <eberger@gewi.kfunigraz.ac.at>
Subject: [PATCHES] oracle_compat functions core dumping on NULL-fields

27 years agoRemove valid pointer checks for returns from palloc() since palloc() will not
Thomas G. Lockhart [Tue, 6 May 1997 07:27:51 +0000 (07:27 +0000)]
Remove valid pointer checks for returns from palloc() since palloc() will not
return if storage is not allocated. Ref: Vadim 97/05/01

27 years agoChange dummy array dimensions from [0] to [1] to keep non-gcc compilers happy.
Thomas G. Lockhart [Tue, 6 May 1997 07:24:42 +0000 (07:24 +0000)]
Change dummy array dimensions from [0] to [1] to keep non-gcc compilers happy.
No real change in the support code is required since the actual size
 of the structures is calculated using offsetof() rather than sizeof().

27 years agoRename LOread() and LOwrite() to loread() and lowrite() to allow use by
Thomas G. Lockhart [Tue, 6 May 1997 07:20:53 +0000 (07:20 +0000)]
Rename LOread() and LOwrite() to loread() and lowrite() to allow use by
 case-insensitive SQL parser.

27 years agoChange LOread() and LOwrite() to loread() and lowrite() to allow use
Thomas G. Lockhart [Tue, 6 May 1997 07:19:04 +0000 (07:19 +0000)]
Change LOread() and LOwrite() to loread() and lowrite() to allow use
 with case-insensitive SQL parser.

27 years agoChange LOread() and LOwrite() to loread() and lowrite() to allow use
Thomas G. Lockhart [Tue, 6 May 1997 07:16:21 +0000 (07:16 +0000)]
Change LOread() and LOwrite() to loread() and lowrite() to allow use
 by case-insensitive SQL parser.

27 years agoRename LOread() and LOwrite() to be lower case to allow use
Thomas G. Lockhart [Tue, 6 May 1997 07:14:34 +0000 (07:14 +0000)]
Rename LOread() and LOwrite() to be lower case to allow use
 in case-insensitive SQL. Define LOread() and LOwrite() as macros
 to avoid having to update calls everywhere.

27 years ago1. Multi-column indices support.
Vadim B. Mikheev [Tue, 6 May 1997 05:20:21 +0000 (05:20 +0000)]
1. Multi-column indices support.
2. Fix for function indices with more than 1 attrs.

27 years agomdcreate():
Vadim B. Mikheev [Tue, 6 May 1997 02:03:20 +0000 (02:03 +0000)]
mdcreate():
    fd = FileNameOpenFile(path, O_RDWR|O_CREAT|O_EXCL, 0600);

    /*
     *  If the file already exists and is empty, we pretend that the
     *  create succeeded.  During bootstrap processing, we skip that check,
     *  because pg_time, pg_variable, and pg_log get created before their
     *  .bki file entries are processed.
     *
>    *  As the result of this pretence it was possible to have in
>    *  pg_class > 1 records with the same relname. Actually, it
>    *  should be fixed in upper levels, too, but... -  vadim 05/06/97
>    */

27 years agoKill re-incarnated bug arround
Vadim B. Mikheev [Mon, 5 May 1997 10:01:02 +0000 (10:01 +0000)]
Kill re-incarnated bug arround

Assert ( --Vnpages > 0 );
and
Assert ( --Fnpages > 0 );

27 years agoThere is no more _CWD_ tag in sources...
Vadim B. Mikheev [Mon, 5 May 1997 06:53:36 +0000 (06:53 +0000)]
There is no more _CWD_ tag in sources...

27 years agoWARN:parser: parser error ...
Vadim B. Mikheev [Mon, 5 May 1997 06:50:28 +0000 (06:50 +0000)]
WARN:parser: parser error ...
changed to
WARN:parser: syntax error ...

27 years agoIf SELECT uses index (btree) then ordered results are returned.
Vadim B. Mikheev [Mon, 5 May 1997 06:47:47 +0000 (06:47 +0000)]
If SELECT uses index (btree) then ordered results are returned.

27 years agoThere is no partial index onek2_u1_prtl in tests...
Vadim B. Mikheev [Mon, 5 May 1997 06:43:59 +0000 (06:43 +0000)]
There is no partial index onek2_u1_prtl in tests...

27 years agoBug: backend crashes in btbeginscan()->btrescan()->_bt_orderkeys()
Vadim B. Mikheev [Mon, 5 May 1997 03:41:19 +0000 (03:41 +0000)]
Bug: backend crashes in btbeginscan()->btrescan()->_bt_orderkeys()
when btree used in innerscan with run-time key which value
passed by pointer.

Fix: keys ordering stuff moved to _bt_first().

Pointed by Thomas Lockhart.

27 years agoAdd substitution from output/.. to input/.. to match templates from inputs.
Thomas G. Lockhart [Fri, 2 May 1997 13:43:14 +0000 (13:43 +0000)]
Add substitution from output/.. to input/.. to match templates from inputs.

27 years agoUpdate to work with new regression tests and directory structure.
Thomas G. Lockhart [Fri, 2 May 1997 13:13:44 +0000 (13:13 +0000)]
Update to work with new regression tests and directory structure.

27 years agoNew test data for aggregate functions.
Thomas G. Lockhart [Fri, 2 May 1997 13:08:11 +0000 (13:08 +0000)]
New test data for aggregate functions.