OSDN Git Service

pg-rex/syncrep.git
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.

27 years agoFix old bug in _hash_first() for scan without keys:
Vadim B. Mikheev [Wed, 30 Apr 1997 06:31:16 +0000 (06:31 +0000)]
Fix old bug in _hash_first() for scan without keys:
if 1st bucket chain is empty then need to continue scan in the rest buckets.

27 years agoMore informative NOTICEs in tuple checks.
Vadim B. Mikheev [Wed, 30 Apr 1997 03:05:43 +0000 (03:05 +0000)]
More informative NOTICEs in tuple checks.

27 years agocreation for postgresql-6.1
Edmund Mergl [Tue, 29 Apr 1997 19:37:10 +0000 (19:37 +0000)]
creation for postgresql-6.1

27 years agoReorder tests and move aggregate table data to data/.
Thomas G. Lockhart [Tue, 29 Apr 1997 14:29:16 +0000 (14:29 +0000)]
Reorder tests and move aggregate table data to data/.

27 years agoAdded initial set of expected outputs for new regression testing.
Thomas G. Lockhart [Tue, 29 Apr 1997 14:23:51 +0000 (14:23 +0000)]
Added initial set of expected outputs for new regression testing.
Modified a few tests to match results on RedHat Linux/gcc for v6.1beta.

27 years agoSET geqo TO ON|OFF
Vadim B. Mikheev [Tue, 29 Apr 1997 04:38:58 +0000 (04:38 +0000)]
SET geqo TO ON|OFF

27 years ago#ifdef GEQO
Vadim B. Mikheev [Tue, 29 Apr 1997 04:37:22 +0000 (04:37 +0000)]
#ifdef GEQO
bool _use_geqo_ = true;
#else
bool _use_geqo_ = false;
#endif

_use_geqo_ is settable via SET var TO ...

27 years agoFix GroupBy: enable functions over aggregates and GroupBy-ed fields
Vadim B. Mikheev [Tue, 29 Apr 1997 04:32:50 +0000 (04:32 +0000)]
Fix GroupBy: enable functions over aggregates and GroupBy-ed fields
in target list.

27 years agoFix configure so that installbsd gets -c also
Marc G. Fournier [Mon, 28 Apr 1997 22:40:35 +0000 (22:40 +0000)]
Fix configure so that installbsd gets -c also

From: Lee Roth <roth@tpusa.com>

27 years agoAdd a netbsd template file and update linux-elf and .similar
Marc G. Fournier [Mon, 28 Apr 1997 16:19:50 +0000 (16:19 +0000)]
Add a netbsd template file and update linux-elf and .similar

27 years agoFrom: "D'Arcy J.M. Cain" <darcy@druid.net>
Marc G. Fournier [Mon, 28 Apr 1997 16:15:13 +0000 (16:15 +0000)]
From: "D'Arcy J.M. Cain" <darcy@druid.net>
Subject: [HACKERS] Inputting money

I notice that I have to put single quotes around money amounts if there
is a decimal point in the value.  I appears to be happening because there
is something changing things like "123.45" to "123.450000" and the code
has a problem with that.  There may be a better way to fix this but here
is a simple change to cash.c that lets it accept trailing zeroes.

27 years agoProvide template for the misc tests which contain path names.
Thomas G. Lockhart [Sun, 27 Apr 1997 19:28:23 +0000 (19:28 +0000)]
Provide template for the misc tests which contain path names.

27 years agoFix path name templates.
Thomas G. Lockhart [Sun, 27 Apr 1997 19:27:34 +0000 (19:27 +0000)]
Fix path name templates.

27 years agoUpdate SQL query results for lists of operators and functions.
Thomas G. Lockhart [Sun, 27 Apr 1997 19:26:24 +0000 (19:26 +0000)]
Update SQL query results for lists of operators and functions.
Add a little info on count().

27 years agoChange mixed-case routines to lower-case for case-insensitive SQL.
Thomas G. Lockhart [Sun, 27 Apr 1997 19:24:16 +0000 (19:24 +0000)]
Change mixed-case routines to lower-case for case-insensitive SQL.
Add mixed-case #define synonyms to avoid changing more source code.
Add comparison operators for boolean.
Add aggregate min() and max() for datetime and timespan.

27 years agoChange mixed-case routines to lower-case in pg_proc.h
Thomas G. Lockhart [Sun, 27 Apr 1997 19:22:45 +0000 (19:22 +0000)]
Change mixed-case routines to lower-case in pg_proc.h
Add comparison operators for boolean.
Add aggregate min() and max() for datetime and timespan.
Fix duplicate OID in pg_proc.h

27 years agoChange mixed-case routines to lower-case if referenced in pg_proc.h
Thomas G. Lockhart [Sun, 27 Apr 1997 19:21:06 +0000 (19:21 +0000)]
Change mixed-case routines to lower-case if referenced in pg_proc.h

27 years agoChange mixed-case routines to lower-case if referenced in pg_proc.h
Thomas G. Lockhart [Sun, 27 Apr 1997 19:20:16 +0000 (19:20 +0000)]
Change mixed-case routines to lower-case if referenced in pg_proc.h
Add comparison operators to boolean and smaller/larger operators to datetime
and timespan. Fix int4 overflow math problem in timespan comparison operators.

27 years agoModify references to function manager to use lower-case calls.
Thomas G. Lockhart [Sun, 27 Apr 1997 19:16:44 +0000 (19:16 +0000)]
Modify references to function manager to use lower-case calls.

27 years agoFrom: Keith Parks <emkxp01@mtcc.demon.co.uk>
Marc G. Fournier [Sun, 27 Apr 1997 18:55:37 +0000 (18:55 +0000)]
From: Keith Parks <emkxp01@mtcc.demon.co.uk>
Subject: [PATCHES] to make regress.sh shell friendly to echo.

Hi,

I needed to make the following change to regress.sh to make it more
shell friendly.

The Solaris /bin/sh, and others, use \c to supress the newline.

27 years agoThere, I'll leave this alone until Thomas catchs up *grin*
Marc G. Fournier [Sun, 27 Apr 1997 18:13:54 +0000 (18:13 +0000)]
There, I'll leave this alone until Thomas catchs up *grin*

27 years agosplit out a bunch more tests from misc.source so that the tester knows
Marc G. Fournier [Sun, 27 Apr 1997 17:40:13 +0000 (17:40 +0000)]
split out a bunch more tests from misc.source so that the tester knows
what's being tested :)

27 years agoChange Postgres95 to PostgreSQL
Marc G. Fournier [Sun, 27 Apr 1997 15:45:26 +0000 (15:45 +0000)]
Change Postgres95 to PostgreSQL

Pointed out by: Christopher Hicks <chicks@chicks.net>

27 years agoAlot of regression test fixes, mainly to compensate for moving
Marc G. Fournier [Sun, 27 Apr 1997 07:45:49 +0000 (07:45 +0000)]
Alot of regression test fixes, mainly to compensate for moving
the DROP TABLE calls from the destroy.sql file to the 'types' .sql files,
so that they are self-contained

btree_index, hash_index and misc all fail as there seems to be missing
a 'misc.out' expected file...have asked Thomas for one...

27 years agoGet first four tests to pass:
Marc G. Fournier [Sun, 27 Apr 1997 04:50:06 +0000 (04:50 +0000)]
Get first four tests to pass:

=============== destroying old regression database... =================
=============== creating new regression database...   =================
=============== running regression queries...         =================
create_function_1 .. ok
create_type .. ok
create_table .. ok
create_function_2 .. ok

27 years agoMake these self-contained tests...they are testing types, so the tables
Marc G. Fournier [Sun, 27 Apr 1997 04:36:10 +0000 (04:36 +0000)]
Make these self-contained tests...they are testing types, so the tables
that are created should only exist as long as the test requires them...

things are just toooooo spread around

27 years agoTrying to continue breaking down the large files into smaller tests so that
Marc G. Fournier [Sun, 27 Apr 1997 04:04:31 +0000 (04:04 +0000)]
Trying to continue breaking down the large files into smaller tests so that
debugging is a little (well, alot!) easier

27 years agoclean up misc.source and create *individual test* files ... trying to move
Marc G. Fournier [Sun, 27 Apr 1997 04:03:50 +0000 (04:03 +0000)]
clean up misc.source and create *individual test* files ... trying to move
away from one big massive confusing file

27 years ago*shrug* I don't know anymore...
Marc G. Fournier [Sun, 27 Apr 1997 03:57:34 +0000 (03:57 +0000)]
*shrug*  I don't know anymore...

27 years ago*shrug*
Marc G. Fournier [Sun, 27 Apr 1997 03:56:23 +0000 (03:56 +0000)]
*shrug*

27 years agoMassive regression test patches from Thomas *woo hoo!*
Marc G. Fournier [Sun, 27 Apr 1997 02:58:38 +0000 (02:58 +0000)]
Massive regression test patches from Thomas *woo hoo!*

27 years agoA few changes to reflect things properly suggested by David
Marc G. Fournier [Sat, 26 Apr 1997 18:43:40 +0000 (18:43 +0000)]
A few changes to reflect things properly suggested by David

27 years agoReverse check for TR so that trbsd gets checked for first
Marc G. Fournier [Sat, 26 Apr 1997 13:36:38 +0000 (13:36 +0000)]
Reverse check for TR so that trbsd gets checked for first

Pointed out by: adrian@waltham.harvard.net

27 years agoAdd a results directory and a Makefile so that 'make clean' cleans it out
Marc G. Fournier [Sat, 26 Apr 1997 06:31:55 +0000 (06:31 +0000)]
Add a results directory and a Makefile so that 'make clean' cleans it out

27 years agoMissed an -I directive
Marc G. Fournier [Sat, 26 Apr 1997 06:13:31 +0000 (06:13 +0000)]
Missed an -I directive

27 years agoMore misc patches from Thomas for regression tests and linux templates
Marc G. Fournier [Sat, 26 Apr 1997 05:50:25 +0000 (05:50 +0000)]
More misc patches from Thomas for regression tests and linux templates

27 years agoClean out/up some files that are causing me great headaches since I didn't
Marc G. Fournier [Sat, 26 Apr 1997 05:45:48 +0000 (05:45 +0000)]
Clean out/up some files that are causing me great headaches since I didn't
do this completely last time and Thomas is creating patches on files that
aren't supposed to exist :(

27 years agoclean up the bin/*/Makefiles...up version.h to v6.1 instead of v6.0
Marc G. Fournier [Sat, 26 Apr 1997 05:07:12 +0000 (05:07 +0000)]
clean up the bin/*/Makefiles...up version.h to v6.1 instead of v6.0

Remove bin/Makefile.global since it wasn't actually *doing* anything
that Makefile.global hadn't already done

27 years agoFix for bootstrap.c problem (F_* values missing from fmgr.h)
Marc G. Fournier [Sat, 26 Apr 1997 04:40:00 +0000 (04:40 +0000)]
Fix for bootstrap.c problem (F_* values missing from fmgr.h)

27 years agoMore timezone patches by Thomas:
Marc G. Fournier [Fri, 25 Apr 1997 18:40:50 +0000 (18:40 +0000)]
More timezone patches by Thomas:

Here are patches which should help fix timezone problems in the
datetime and abstime code. Also, I repatched varlena.c to add in
some comments and a little error checking on top of Vadim's earlier
repairs. There are slight mods to the circle data type to have the
distance operator between circles measure the distance between
closest points rather than between centers.

27 years agoFrom: "Pedro J. Lobo" <pjlobo@euitt.upm.es>
Marc G. Fournier [Thu, 24 Apr 1997 20:30:41 +0000 (20:30 +0000)]
From: "Pedro J. Lobo" <pjlobo@euitt.upm.es>
Subject: [PATCHES] Patches for compiling 6.1 on Digital Unix 3.2c

Attached to this message are the patches I needed to compile 6.1 cleanly
under Digital Unix 3.2c with DEC cc.

I hope these are the last ones. At least, the number of files needing a
patch has decreased noticeably since I sent my previous patches. Nice work
:-)

One of the patches is a bug fix, but I'm including it here anyway.

With these patches applied, the beast seems to work properly. However,
I've done only some preliminary tests. More on this later (but hopefully
before the April 30 deadline... :-)

27 years agoFixes:
Marc G. Fournier [Thu, 24 Apr 1997 20:27:46 +0000 (20:27 +0000)]
Fixes:

postgres backend processes end up as so called zombies. It seems that
only Linux a.out (libc.4.6.27) systems are affected.

By:

Wolfgang Roth <roth@statistik.uni-mannheim.de>

27 years agoVarious bug fixes based on a bug report submitted by
Marc G. Fournier [Thu, 24 Apr 1997 20:02:02 +0000 (20:02 +0000)]
Various bug fixes based on a bug report submitted by
Doug Neuhauser <doug@seismo.berkeley.edu> on April 15th

27 years agoAdded comments about FASTBUILD.
Vadim B. Mikheev [Thu, 24 Apr 1997 16:21:46 +0000 (16:21 +0000)]
Added comments about FASTBUILD.
Added #define BTREE_VERSION_1.

27 years ago * Hack for non-functional btree npages estimation:
Vadim B. Mikheev [Thu, 24 Apr 1997 16:07:14 +0000 (16:07 +0000)]
 * Hack for non-functional btree npages estimation:
     * npages = index_pages * selectivity_of_1st_attr_clause(s)

27 years agoHave to copyObject((void*)clauseinfo) for a relation'
Vadim B. Mikheev [Thu, 24 Apr 1997 16:04:23 +0000 (16:04 +0000)]
Have to copyObject((void*)clauseinfo) for a relation'
joininfo (in add_join_clause_info_to_rels()) : clause may be
commutted later.

27 years agoBug (yet unfixed but not fatal) found: Re-moving index clauses from the
Vadim B. Mikheev [Thu, 24 Apr 1997 15:59:58 +0000 (15:59 +0000)]
Bug (yet unfixed but not fatal) found: Re-moving index clauses from the
nestloop's join clauses doesn't work in some cases:
         *    1. fix_indxqual_references may change varattno-s in
         *       inner_indxqual;
         *    2. clauses may be commuted

27 years agoSave Var' order in index_outerjoin_references().
Vadim B. Mikheev [Thu, 24 Apr 1997 15:54:52 +0000 (15:54 +0000)]
Save Var' order in index_outerjoin_references().

27 years agoAdd innercost to result in cost_hashjoin.
Vadim B. Mikheev [Thu, 24 Apr 1997 15:49:30 +0000 (15:49 +0000)]
Add innercost to result in cost_hashjoin.

27 years ago_bt_endpoint fixed: set currentItemData to Invalid if no result.
Vadim B. Mikheev [Thu, 24 Apr 1997 15:46:44 +0000 (15:46 +0000)]
_bt_endpoint fixed: set currentItemData to Invalid if no result.

27 years agoEnable to set _cpu_page_wight_ & _cpu_index_page_wight_ via
Vadim B. Mikheev [Thu, 24 Apr 1997 15:41:37 +0000 (15:41 +0000)]
Enable to set _cpu_page_wight_ & _cpu_index_page_wight_ via
SET cost_heap(cost_index) TO ...

27 years ago#define _CPU_PAGE_WEIGHT_: 0.065 --> 0.033
Vadim B. Mikheev [Thu, 24 Apr 1997 15:38:34 +0000 (15:38 +0000)]
#define _CPU_PAGE_WEIGHT_: 0.065 --> 0.033
#define _CPU_INDEX_PAGE_WEIGHT_: 0.033 --> 0.017

27 years agoSet SRCDIR=..
Marc G. Fournier [Thu, 24 Apr 1997 14:30:09 +0000 (14:30 +0000)]
Set SRCDIR=..

27 years agoRemove chunk from regression tests about regress.out vs expected.out...the
Marc G. Fournier [Thu, 24 Apr 1997 14:14:28 +0000 (14:14 +0000)]
Remove chunk from regression tests about regress.out vs expected.out...the
tests now let you know if it is ok/failed :)

27 years ago-Wno-error should only be enabled for gcc compilers, it seems
Marc G. Fournier [Thu, 24 Apr 1997 13:25:07 +0000 (13:25 +0000)]
-Wno-error should only be enabled for gcc compilers, it seems

27 years agoSomewhat backwards #ifdef's for HAVE_GETRUSAGE
Marc G. Fournier [Thu, 24 Apr 1997 03:39:09 +0000 (03:39 +0000)]
Somewhat backwards #ifdef's for HAVE_GETRUSAGE

27 years agoVarious patches not commited, plus a linux/sparc patch from
Marc G. Fournier [Thu, 24 Apr 1997 02:35:39 +0000 (02:35 +0000)]
Various patches not commited, plus a linux/sparc patch from
Satoshi Ishikawa <power@sekine.densi.gifu-u.ac.jp>

27 years agoChange HAVE_RUSAGE to HAVE_GETRUSAGE, which is the more appropriate
Marc G. Fournier [Wed, 23 Apr 1997 18:02:43 +0000 (18:02 +0000)]
Change HAVE_RUSAGE to HAVE_GETRUSAGE, which is the more appropriate

27 years agoVacuum help changed (ANALYZE).
Vadim B. Mikheev [Wed, 23 Apr 1997 06:41:56 +0000 (06:41 +0000)]
Vacuum help changed (ANALYZE).

27 years agoAnalyze data only if specified and specified attrs only.
Vadim B. Mikheev [Wed, 23 Apr 1997 06:28:48 +0000 (06:28 +0000)]
Analyze data only if specified and specified attrs only.

27 years ago1. SHOW/RESET var fixed.
Vadim B. Mikheev [Wed, 23 Apr 1997 06:09:36 +0000 (06:09 +0000)]
1. SHOW/RESET var fixed.
2. vacuum() call changed (ANALYZE).

27 years ago1. SHOW/RESET var fixed.
Vadim B. Mikheev [Wed, 23 Apr 1997 06:04:46 +0000 (06:04 +0000)]
1. SHOW/RESET var fixed.
2. New VACUUM syntax (ANALYZE ...).

27 years ago1. VariableShowStmt and VariableResetStmt added.
Vadim B. Mikheev [Wed, 23 Apr 1997 05:58:06 +0000 (05:58 +0000)]
1. VariableShowStmt and VariableResetStmt added.
2. VacuumStmt changed (for VACUUM ANALYZE...).

27 years agoThere were too many comments.
Vadim B. Mikheev [Wed, 23 Apr 1997 05:52:32 +0000 (05:52 +0000)]
There were too many comments.

27 years agoTo: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
Marc G. Fournier [Wed, 23 Apr 1997 03:18:27 +0000 (03:18 +0000)]
To: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
Subject: Re: [PATCHES] SET DateStyle patches

On Tue, 22 Apr 1997, Thomas Lockhart wrote:

> Some more patches! These (try to) finish implementing SET variable TO value
> for "DateStyle" (changed the name from simply "date" to be more descriptive).
> This is based on code from Martin and Bruce (?), which was easy to modify.
> The syntax is
>
> SET DateStyle TO 'iso'
> SET DateStyle TO 'postgres'
> SET DateStyle TO 'sql'
> SET DateStyle TO 'european'
> SET DateStyle TO 'noneuropean'
> SET DateStyle TO 'us'         (same as "noneuropean")
> SET DateStyle TO 'default'    (current same as "postgres,us")
>
> ("european" is just compared for the first 4 characters, and "noneuropean"
> is compared for the first 7 to allow less typing).
>
> Multiple arguments are allowed, so SET datestyle TO 'sql,euro' is valid.
>
> My mods also try to implement "SHOW variable" and "RESET variable", but
> that part just core dumps at the moment. I would guess that my errors
> are obvious to someone who knows what they are doing with the parser stuff,
> so if someone (Bruce and/or Martin??) could have it do the right thing
> we will have a more complete set of what we need.
>
> Also, I would like to have a floating point precision global variable to
> implement "SET precision TO 10" and perhaps "SET precision TO 10,2" for
> float8 and float4, but I don't know how to do that for integer types rather
> than strings. If someone is fixing the SHOW and RESET code, perhaps they can
> add some hooks for me to do the floats while they are at it.
>
> I've left some remnants of variable structures in the source code which
> I did not use in the interests of getting something working for v6.1.
> We'll have time to clean things up for the next release...

27 years agoFrom: System Administrator <igor@sba.miami.edu>
Marc G. Fournier [Tue, 22 Apr 1997 17:55:20 +0000 (17:55 +0000)]
From: System Administrator <igor@sba.miami.edu>
Subject: [PORTS] Configure for DEC-Alpha

Configure script properly detects alpha-dec-osf4.0 machine, but
sets a default GENERIC template for it. I modified tempplate/.similar to
add alpha-dec-osf4.0=alpha. Then configure properly set the template to
alpha.

27 years agoAdd fcvt() as a check to configure so that we can get rid of the BSD44_derived
Marc G. Fournier [Tue, 22 Apr 1997 17:47:42 +0000 (17:47 +0000)]
Add fcvt() as a check to configure so that we can get rid of the BSD44_derived
type check in numutils.c:ftoa()

Pointed out by: "Martin J. Laubach" <mjl@emsi.priv.at>

27 years agoFrom: adrian@waltham.harvard.net
Marc G. Fournier [Tue, 22 Apr 1997 17:41:15 +0000 (17:41 +0000)]
From: adrian@waltham.harvard.net
Subject: [PATCHES] Patch for configure.in to not ask for CASSERT

The following patch defaults to CASSERT, so it doesn't ask you.  You can
still use --enable-cassert and --disable-cassert to do it explicitly.

Default: disabled

27 years agoFrom: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
Marc G. Fournier [Tue, 22 Apr 1997 17:36:57 +0000 (17:36 +0000)]
From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
Subject: [PATCHES] date/time timezone patches (mail bounced?)

Here are some hacks to get timezone behavior for the various time
data types to be compatible with v6.0. Although we have some hooks
already installed to get timezone info from the client to the
server, it still isn't clear if that can correctly transfer enough
timezone info to make the behavior the same as if timezone info
were derived from the server as is now the case. We certainly
won't resolve it in a day, so I think we are stuck with server-only
timezones for v6.1.

27 years agoMajor patch from Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
Marc G. Fournier [Tue, 22 Apr 1997 17:35:09 +0000 (17:35 +0000)]
Major patch from Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>

OK, here are a passel of patches for the geometric data types.
These add a "circle" data type, new operators and functions
for the existing data types, and change the default formats
for some of the existing types to make them consistant with
each other. Current formatting conventions (e.g. compatible
with v6.0 to allow dump/reload) are supported, but the new
conventions should be an improvement and we can eventually
drop the old conventions entirely.

For example, there are two kinds of paths (connected line segments),
open and closed, and the old format was

'(1,2,1,2,3,4)' for a closed path with two points (1,2) and (3,4)
'(0,2,1,2,3,4)' for an open path with two points (1,2) and (3,4)

Pretty arcane, huh? The new format for paths is

'((1,2),(3,4))' for a closed path with two points (1,2) and (3,4)
'[(1,2),(3,4)]' for an open path with two points (1,2) and (3,4)

For polygons, the old convention is

'(0,4,2,0,4,3)' for a triangle with points at (0,0),(4,4), and (2,3)

and the new convention is

'((0,0),(4,4),(2,3))' for a triangle with points at (0,0),(4,4), and (2,3)

Other data types which are also represented as lists of points
(e.g. boxes, line segments, and polygons) have similar representations
(they surround each point with parens).

For v6.1, any format which can be interpreted as the old style format
is decoded as such; we can remove that backwards compatibility but ugly
convention for v7.0. This will allow dump/reloads from v6.0.

These include some updates to the regression test files to change the test
for creating a data type from "circle" to "widget" to keep the test from
trashing the new builtin circle type.