Commit Graph

3012 Commits

Author SHA1 Message Date
Bruce Momjian
763ff8aef8 Remove Query->qry_aggs and qry_numaggs and replace with Query->hasAggs.
Pass List* of Aggregs into executor, and create needed array there.
No longer need to double-processs Aggregs with second copy in Query.

Fix crash when doing:

	select sum(x+1) from test where 1 > 0;
1998-01-15 19:00:16 +00:00
Bruce Momjian
f22d8e6668 Function cleanupo for List* when it should be Node *. 1998-01-14 19:55:53 +00:00
Bruce Momjian
cb3ce64f2e Cleanup of prototypes. FIx for PQtrace start/stop several times. 1998-01-14 15:48:51 +00:00
Marc G. Fournier
d8972c62b4 this should pretty much clean up the i386_solaris port, with regression
tests running "as expected"...
1998-01-13 20:13:19 +00:00
Marc G. Fournier
8adc838ff6 Various cleanups for the i386_solaris environment 1998-01-13 19:28:39 +00:00
Marc G. Fournier
434165295a isinf() doesn't exist under i386_solaris, so code it such that
it is (!isnan() && !finite()) instead
1998-01-13 19:22:29 +00:00
Marc G. Fournier
06356b8978 Oops, should be 'tas.o', not 'tas.s' 1998-01-13 19:04:39 +00:00
Marc G. Fournier
3a48ee4a0f MIssed a semi-colon in AC_LINK_FILES for i386_solaris port... 1998-01-13 15:53:02 +00:00
Marc G. Fournier
80b6206c5a Further clean up "auto-configuration" for ports 1998-01-13 15:31:24 +00:00
Marc G. Fournier
6361ac88b9 Work on getting the i386_solaris compile to work ... 1998-01-13 15:00:22 +00:00
Vadim B. Mikheev
1fd402be54 Remove unused "option" from PQconnectdb(). 1998-01-13 14:57:25 +00:00
Vadim B. Mikheev
9453940a85 Remove PageSizeIsValid from BufferGetPageSize. 1998-01-13 14:56:15 +00:00
Vadim B. Mikheev
e8291f7ce2 extern char* crypt_getpwdreloadfilename(void);
^^^^
1998-01-13 14:53:36 +00:00
Marc G. Fournier
dfef663fd6 Add a 'dummy' file for i386_solaris.c for configure 1998-01-13 13:33:12 +00:00
Marc G. Fournier
a5b106ee89 Updated Regression output 1998-01-13 05:28:21 +00:00
Marc G. Fournier
7fddac925b Have clean clean out the test directory also, as well as the Makefiles in
interfaces/{libpq,libpgtcl}
1998-01-13 04:43:22 +00:00
Marc G. Fournier
6380e70f07 A minor patch for HP/UX 10 vs 9 1998-01-13 04:38:30 +00:00
Marc G. Fournier
602b0d0c1c From: Goran Thyni <goran@bildbasen.se>
OK, here comes a patch, DBD::Pg (and possibly other 3rd party clients)
can connect to unix sockets.
Patch is against current source tree.

Background:
libpq set some policy for client, which it should not
IMHO. It prevent some 3rd party clients to connect with
unix domain sockets etc.
1998-01-13 04:24:10 +00:00
Marc G. Fournier
80159ee2bc One more src/interfaces/libpq/Makefile problem: there's an explicit
reference to the name of the shared library, instead of dereferencing
the definition from the top of the file.

From: Tom I Helbekkmo <tih@Hamartun.Priv.NO>
1998-01-13 04:20:51 +00:00
Marc G. Fournier
405ced26ba Various fixes resulting from removing the PORTNAME defines
From: Tom I Helbekkmo <tih@Hamartun.Priv.NO>
1998-01-13 04:18:22 +00:00
Marc G. Fournier
374bb5d261 Some *very* major changes by darrenk@insightdist.com (Darren King)
==========================================
What follows is a set of diffs that cleans up the usage of BLCKSZ.

As a side effect, the person compiling the code can change the
value of BLCKSZ _at_their_own_risk_.  By that, I mean that I've
tried it here at 4096 and 16384 with no ill-effects.  A value
of 4096 _shouldn't_ affect much as far as the kernel/file system
goes, but making it bigger than 8192 can have severe consequences
if you don't know what you're doing.  16394 worked for me, _BUT_
when I went to 32768 and did an initdb, the SCSI driver broke and
the partition that I was running under went to hell in a hand
basket. Had to reboot and do a good bit of fsck'ing to fix things up.

The patch can be safely applied though.  Just leave BLCKSZ = 8192
and everything is as before.  It basically only cleans up all of the
references to BLCKSZ in the code.

If this patch is applied, a comment in the config.h file though above
the BLCKSZ define with warning about monkeying around with it would
be a good idea.

Darren  darrenk@insightdist.com

(Also cleans up some of the #includes in files referencing BLCKSZ.)
==========================================
1998-01-13 04:05:12 +00:00
Marc G. Fournier
f0445dcbc4 > It seems there is a mistake in substr function:
> then you try get substr, which consists only of last char in string
> you get all string
>
> For example:
> userbase=> select substr('123456', 6,1) ;
> substr
> ------
> 123456
> (1 row)
>

From Edmund Mergl <E.Mergl@bawue.de>
1998-01-13 03:49:51 +00:00
Marc G. Fournier
fc7950993d Should fix it all, Peter? 1998-01-13 02:23:09 +00:00
Marc G. Fournier
06bad78075 Oops...missed over half the patch :( 1998-01-13 02:19:56 +00:00
Marc G. Fournier
c77c608aa2 Upgrade to 0.76 1998-01-12 18:10:28 +00:00
Bruce Momjian
f57cfa5e4d Html backend_dir cleanup 1998-01-12 14:41:38 +00:00
Bruce Momjian
1ea03f7de5 Manual page dash cleanup. 1998-01-11 22:18:01 +00:00
Marc G. Fournier
e9fd73ca48 Fix from Peter for BLOBs 1998-01-11 21:16:01 +00:00
Marc G. Fournier
ba977c086c Peter's Mega-Patch for JDBC...
see README_6.3 for list of changes
1998-01-11 21:14:56 +00:00
Bruce Momjian
4bad5be7bc Fix SCO and change index name. 1998-01-11 21:03:10 +00:00
Bruce Momjian
660f458d3b Clean up of copyfuncs. 1998-01-11 20:02:32 +00:00
Bruce Momjian
f3dbe7356b psql help cleanup. 1998-01-11 04:36:28 +00:00
Bruce Momjian
40d55d2c0a Update psql help. 1998-01-11 04:17:01 +00:00
Bruce Momjian
600c958a30 Add UNION, GROUP, DISTINCT to INSERT. 1998-01-11 03:41:57 +00:00
Thomas G. Lockhart
d70df16a76 Fix up for recent changes in elog error messages.
Some behavior of the triggers test cases changed for the least week or two;
 now back to the usual expected behavior.
1998-01-10 17:50:49 +00:00
Bruce Momjian
6cfa6cb95e Fix CLUSTER. 1998-01-10 05:19:22 +00:00
Bruce Momjian
e6c714bf30 Bye CursorStmt, now use SelectStmt. 1998-01-10 04:30:11 +00:00
Bruce Momjian
e7b205b486 Remove old quel labels. 1998-01-09 21:26:12 +00:00
Bruce Momjian
ad8fa23727 Remove old quel labels. 1998-01-09 21:13:43 +00:00
Bruce Momjian
3d15d1332a Remove old quel labels. 1998-01-09 20:06:08 +00:00
Bruce Momjian
bf8af2205b PAGER \z in psql. 1998-01-09 19:34:38 +00:00
Bruce Momjian
31a697bf92 Yohoo UNIONS of VIEWS. 1998-01-09 05:48:22 +00:00
Bruce Momjian
8f125413b0 Cleanup of varchar. 1998-01-08 06:18:18 +00:00
Bruce Momjian
84ef6aae18 Re-install working varchar() with compress size. 1998-01-08 04:58:19 +00:00
Bruce Momjian
5fe090c559 Completion of varchar rollback. 1998-01-08 04:19:16 +00:00
Bruce Momjian
35be73027e Cleanup of varchar. 1998-01-08 03:15:06 +00:00
Bruce Momjian
c098f309e3 Rollback varchar size change. 1998-01-08 03:05:01 +00:00
Bruce Momjian
1c9fcfb683 Fix for varchar I missed. 1998-01-07 22:08:23 +00:00
Bruce Momjian
679d39b9c8 Goodbye ABORT. Hello ERROR for all errors. 1998-01-07 21:07:04 +00:00
Bruce Momjian
e6c6146eb8 Allow varchar() to only store needed bytes. Remove PALLOC,PALLOCTYPE,PFREE. Clean up use of VARDATA. 1998-01-07 18:47:07 +00:00
Marc G. Fournier
7a2a7d436d Wrap the function in and #ifdef, not the header files
Should fix an AIX compiler problem
1998-01-07 17:02:52 +00:00
Bruce Momjian
3f1b1db7c5 Cleanup of outnodes. 1998-01-07 15:40:17 +00:00
Bruce Momjian
e9dc636e0c Cleanup of outnodes. 1998-01-07 15:32:47 +00:00
Bruce Momjian
c01a56daf5 Fix for views and outnodes. 1998-01-07 08:08:08 +00:00
Bruce Momjian
56466049d6 Cleanup of outnode stuff. 1998-01-07 05:54:11 +00:00
Bruce Momjian
c9d9fe7690 Cleanup of outnode stuff. 1998-01-07 05:50:41 +00:00
Bruce Momjian
a552a894eb Cleanup of outnode stuff. 1998-01-07 05:42:47 +00:00
Bruce Momjian
1b9ab297f3 Change web page directions. 1998-01-07 03:48:29 +00:00
Bruce Momjian
e22b09c227 Fix sorting of multiple fields broken with UNION. 1998-01-06 23:58:05 +00:00
Bruce Momjian
4557c846de Cleanup of sort nodes and use of strtoul . 1998-01-06 23:19:49 +00:00
Bruce Momjian
f439eb35b8 ABORT to ERROR in catalog/. 1998-01-06 19:42:33 +00:00
Bruce Momjian
845f82e541 Regression cleanup of WARN. 1998-01-06 19:25:19 +00:00
Bruce Momjian
9d00fbbeb0 Change some labels in bootparse to make ctags happy. Clean up outfunc/readfunc code and add missing fields for Query structure and new Union fields. Fix optimizer bug shown in new \do command. Change WARN to ERROR in contrib and regression stuff. 1998-01-06 18:53:02 +00:00
Bruce Momjian
42acc6e8c4 Move variable.c to commands/ and aclchk.c to catalog/. 1998-01-05 18:53:12 +00:00
Bruce Momjian
9db64857e0 Move variable.c to commands/ and aclchk.c to catalog/. 1998-01-05 18:43:18 +00:00
Bruce Momjian
deea69b90e Change some ABORTS to ERROR. Add line number when COPY Failure. 1998-01-05 16:40:20 +00:00
Bruce Momjian
3d8820a364 Remove un-needed quotes from psql \d DEFAULT display. 1998-01-05 13:56:05 +00:00
Bruce Momjian
69cf5abe10 Change elog(WARN) to elog(ERROR) and elog(ABORT). 1998-01-05 04:10:07 +00:00
Bruce Momjian
345641e498 Change elog(WARN) to elog(ERROR) and elog(ABORT). 1998-01-05 03:45:54 +00:00
Bruce Momjian
0d9fc5afd6 Change elog(WARN) to elog(ERROR) and elog(ABORT). 1998-01-05 03:35:55 +00:00
Bruce Momjian
0af9137f14 Add NOT NULL and DEFAULT to \d table. 1998-01-05 02:21:22 +00:00
Marc G. Fournier
0aa928764a Various fixes NETBSD/sparc related
From: Tom I Helbekkmo <tih@Hamartun.Priv.NO>
1998-01-04 19:13:04 +00:00
Bruce Momjian
a65e4484da Fix for aggs on views and complex ones. I missed one file. 1998-01-04 04:53:50 +00:00
Bruce Momjian
4b05912f0b Fix for count(*), aggs with views and multiple tables and sum(3). 1998-01-04 04:31:43 +00:00
Marc G. Fournier
c629d3b9d6 need to include postgres.h before HAVE_DLD_H
need to include string.h for strdup()

From: Bryan Henderson <bryanh@giraffe-data.com>
1998-01-02 03:40:04 +00:00
Thomas G. Lockhart
8e3ccad128 Test for __ELF__ rather than LINUX_ELF in headers.
Comment-out dynamic link function declarations since they are all
 provided by the system.
Should we bother continuing to support non-elf Linux systems??
1998-01-01 06:02:04 +00:00
Thomas G. Lockhart
e447a467fa Remove declaration for -DLINUX_ELF since testing for __ELF__ in code. 1998-01-01 05:59:24 +00:00
Thomas G. Lockhart
37f17d39c1 Define text_substr().
Change declarations from "struct varlena *" to "text *".
Remove register variables since compiler should do better on its own.
1998-01-01 05:50:50 +00:00
Thomas G. Lockhart
a343b2e713 Coerce a function argument to avoid compiler warning. 1998-01-01 05:48:14 +00:00
Thomas G. Lockhart
439fb6c4fb Include text_substr() function and use instead of oracle_compat equivalent. 1998-01-01 05:47:11 +00:00
Thomas G. Lockhart
fcabd0753c Change precedence for boolean operators to match expected behavior.
Change NOTICE/NOTICE/NOTICE/WARN elog messages to a single message
 with a few newline/tab breaks embedded in the string. Much cleaner I hope.
1998-01-01 05:44:54 +00:00
Thomas G. Lockhart
cc19151e3b Add substring function for text based on oracle_compat package but
closer to standard behavior.
Substitute "text *" for "struct varlena *" in declarations.
1998-01-01 05:42:40 +00:00
Thomas G. Lockhart
1ac6d462b2 Bracket #define sigsetjmp() to avoid redefinition. Linux starts out with
sigsetjmp as a macro, so gives compiler warning without bracketing.
1998-01-01 05:40:28 +00:00
Thomas G. Lockhart
b180144545 Include SPI module when cleaning. 1998-01-01 05:37:29 +00:00
Marc G. Fournier
0d48d4f3be Missed a subst() for the RANDOM substritution... 1997-12-31 03:51:17 +00:00
Marc G. Fournier
d82f2f1f93 Change @RANDOM@ to @MISSING_RANDOM@ because of bash 1997-12-30 04:08:55 +00:00
Marc G. Fournier
42a3c46b4e Oops, missed adding a file
From: Ryan Kirkpatrick <rkirkpat@nag.cs.colorado.edu>
1997-12-30 04:03:01 +00:00
Marc G. Fournier
8a0967a3b1 bring in alpha/linux s_lock changes
From: Ryan Kirkpatrick <rkirkpat@nag.cs.colorado.edu>
1997-12-30 04:01:28 +00:00
Marc G. Fournier
3c1332e573 Slightly delayed patches from Todd...damn holidays :)
o  A new patch that contains the following changes:
        -- The pg_pwd file is now cached in the postmaster's memory.
        -- pg_pwd is reloaded when the postmaster detects a flag file creat()'ed
           by a backend.
        -- qsort() is used to sort loaded password entries, and bsearch() is
           is used to find entries in the pg_pwd cache.
        -- backends now copy the pg_user relation to pg_pwd.pid, and then
           rename the temp file to be pg_pwd.
        -- The delimiter for pg_pwd has been changed to a tab character.
1997-12-30 02:26:56 +00:00
Bruce Momjian
a544b605e2 Change some mallocs to palloc. 1997-12-29 05:13:57 +00:00
Bruce Momjian
a1dd409053 Fix for ORDER BY in UNION. 1997-12-29 04:31:50 +00:00
Bruce Momjian
499b13c994 UNION cleanup again. 1997-12-29 02:09:54 +00:00
Bruce Momjian
a01b085c78 Cleanup of UNION ALL fix. Manual page updates. 1997-12-29 01:13:37 +00:00
Bruce Momjian
4ce24c8aa9 UNION work for UNION ALL and other union stuff. 1997-12-27 06:41:41 +00:00
Marc G. Fournier
2730c4a45c Knew I missed somewhere...remove PORTNAME references from GNUmakefile.in, since
PORTNAME should not be used anywhere anymore...I hope :)
1997-12-26 22:35:53 +00:00
Vadim B. Mikheev
031f471f44 Prototypes for new funcs. 1997-12-26 08:45:27 +00:00
Vadim B. Mikheev
d8949adc20 Cleaning GCC warnings. 1997-12-26 06:02:26 +00:00
Vadim B. Mikheev
c06ecfb456 extern char* crypt_getpwdfilename(void);
^^^^ gcc likes this
1997-12-26 05:51:51 +00:00
Bruce Momjian
6231e161c9 Implementation of UNIONs. 1997-12-24 06:06:58 +00:00
Bruce Momjian
18adbd9aed Reverse out Thomas's group clause change. 1997-12-23 21:49:03 +00:00
Bruce Momjian
bbd5c21786 Make no-tty not use quiet in psql, fix group by copy failure, fix ccsym to delete tmp files. 1997-12-23 21:38:53 +00:00
Thomas G. Lockhart
6b2e7e12be Add newline/tab to middle of long failure message to pretty it up a bit. 1997-12-23 20:00:06 +00:00
Thomas G. Lockhart
e8783d4af0 Change field name in RetrieveStmt from selectClause to unionClause.
Add unionall boolean field to SubSelect structure.
1997-12-23 19:58:12 +00:00
Thomas G. Lockhart
0c714ea9ae Lengthen some time conversion routine names now that longer names
(> 16 characters) are allowed in pg_proc (thanks Bruce!).
1997-12-23 19:55:51 +00:00
Thomas G. Lockhart
2119b523c5 Fix numeric comparision (... != NULL) to be (... > 0). gcc is happier now.
Add non-working code which is commented-out to copy GroupClause structures.
1997-12-23 19:53:30 +00:00
Thomas G. Lockhart
12d5c30c8c Add routines to print AExpr, Ident, and AConst parsing structures. 1997-12-23 19:50:54 +00:00
Thomas G. Lockhart
2c833a728f Implement CREATE TABLE ... AS SELECT borrowing code from SubSelect
and from SELECT ... INTO ... support code.
Allow NOT, IS NULL, IS NOT NULL in constraints.
Define unionall boolean flag in SubSelect structure.
Implement row descriptors: (a, b, c) = (x, y, z).
Change IS TRUE, IS FALSE, etc. to expressions using "=" rather than
 function calls to istrue() or isfalse() to allow optimization.
Force type for TRUE and FALSE to bool.
1997-12-23 19:47:32 +00:00
Thomas G. Lockhart
8ed721ffef Change variable name reference from selectClause to more appropriate unionClause.
Add a few lines of test code playing with the unique flag for unions.
 Does not do much helpful yet.
1997-12-23 19:39:42 +00:00
Thomas G. Lockhart
98f5975cb0 Fix up some elog error messages. 1997-12-23 19:36:20 +00:00
Thomas G. Lockhart
7c682b46c9 Expand a few date/time routine names to > 16 characters now that this
is legal. Fix a little whitespace in other declarations.
1997-12-23 19:29:15 +00:00
Thomas G. Lockhart
ca23837ade Fix format to produce actual German style. Affects new "GERMAN" feature only. 1997-12-23 19:26:31 +00:00
Thomas G. Lockhart
ed14f88512 Change logic slightly to avoid one unnecessary calculation. No big deal. 1997-12-23 19:24:43 +00:00
Thomas G. Lockhart
c06331a47d Change a few routine names back to full length now that pg_proc allows
names over 16 characters. datet_datetime() -> datetime_datetime(), etc.
1997-12-23 19:23:09 +00:00
Bruce Momjian
e4bd9127cb Remove regression in function. 1997-12-23 03:27:23 +00:00
Bruce Momjian
3827555869 Fix notty output to show status result. -q option still turns it off. 1997-12-22 20:03:53 +00:00
Bruce Momjian
ad43a7219c Fix for test 0 error. 1997-12-22 05:56:43 +00:00
Bruce Momjian
d404f1006b Fix for select 1=1 or 2=2, select 1=1 and 2=2, and select sum(2+2). 1997-12-22 05:42:25 +00:00
Bruce Momjian
78a055a659 Remove some recursion in optimizer and clean up some code there. 1997-12-21 05:18:48 +00:00
Marc G. Fournier
0808e658a7 Potential fix for Bruce's "test" problem 1997-12-20 18:36:26 +00:00
Bruce Momjian
7fd4782504 Fix aggregates on inherited tables. 1997-12-20 07:59:44 +00:00
Marc G. Fournier
1783963cab Move more to dynloader subdir 1997-12-20 04:48:11 +00:00
Marc G. Fournier
44be631dd8 Make sure distclean works as well as clean 1997-12-20 04:43:20 +00:00
Marc G. Fournier
3cc95146c4 Missed a HAVE_ 1997-12-20 04:26:27 +00:00
Marc G. Fournier
9a60a20f99 fix so that dynloader.h is included instead of port-protos.h 1997-12-20 04:13:31 +00:00
Marc G. Fournier
a38bd20b83 Fix use of variable in Makefile.in 1997-12-20 04:10:35 +00:00
Marc G. Fournier
0356acebd5 Make sure configure reflects changes 1997-12-20 03:41:06 +00:00
Marc G. Fournier
1d5cd311d1 Oops, forgot to add what I took away 1997-12-20 03:38:20 +00:00
Marc G. Fournier
e3a18f6f50 More cleanups... 1997-12-20 03:36:35 +00:00
Marc G. Fournier
722fa83f05 More ports switched over 1997-12-20 03:23:46 +00:00
Marc G. Fournier
b5466f8669 Move over the BSDi port files 1997-12-20 03:13:59 +00:00
Marc G. Fournier
a0bc7aa74c This should get the linux port to work... 1997-12-20 02:36:26 +00:00
Marc G. Fournier
20ff6432a1 Get it so that everything else *should* work with my changes... 1997-12-20 02:33:56 +00:00
Marc G. Fournier
6e337eef45 Major cleanout of PORTNAME variables from Makefiles...bound to screw up
some of the ports...
1997-12-20 00:29:35 +00:00
Marc G. Fournier
10ff1eea60 First clean compile without a "PORTNAME" variable being set... 1997-12-20 00:11:13 +00:00
Marc G. Fournier
93e74460a9 removed the port-protos.h from bsd a little too quick...remedied now 1997-12-19 23:17:42 +00:00
Marc G. Fournier
f4ceaf8484 If this doesn't break something, nothing will *muhahaha*
Just got rid of PORTNAME altogether for FreeBSD and AIX...more to follow
1997-12-19 23:10:16 +00:00
Marc G. Fournier
153558dff8 These files will get link'd to 'dynloader.[ch]', from configure, which
will then get link'd into SUBSYS.o
1997-12-19 22:58:27 +00:00
Marc G. Fournier
56a7d9fac2 More removal of port dependent stuff 1997-12-19 22:56:03 +00:00
Marc G. Fournier
903e21b451 More cleanups. Move alot of the prototype definitions straight into
config.h, right beside their appropriate HAVE_ #ifdefs...one central
location that is included everywhere...
1997-12-19 22:47:00 +00:00
Marc G. Fournier
4ee5f2b965 Get rid of PORTNAME from Makefile.global.in... 1997-12-19 21:29:28 +00:00
Marc G. Fournier
1f9eb5c106 Add regression output from FreeBSD 1997-12-19 21:23:19 +00:00
Bruce Momjian
e2aec508e2 Replace foo/bar to l1/l2. 1997-12-19 16:54:15 +00:00
Marc G. Fournier
d370849a9d Here is the difference between expected->results of the regression
tests under sparc_solaris
1997-12-19 15:50:18 +00:00
Marc G. Fournier
c6bd6860d7 More cleanups...only need one rusagestub.h 1997-12-19 13:35:17 +00:00
Marc G. Fournier
5acf432ddb remove port from OBJS line... 1997-12-19 13:28:06 +00:00
Marc G. Fournier
429b9d6691 Nice clean compile...still need to run regression tests, but its a major
start
1997-12-19 03:42:14 +00:00
Marc G. Fournier
d7046ada02 Update configure so that it auto-detects and configures for missing
functions...
1997-12-19 03:08:03 +00:00
Marc G. Fournier
2b4db36c00 Okay, that's it for tonight...broke a few ports, most likely, but that
is expected...a few ports don't have "ports" anymore, with most things
auto-configured by configure like it should be :)
1997-12-19 03:06:22 +00:00
Marc G. Fournier
70718dc25a More cleanups 1997-12-19 02:56:35 +00:00
Marc G. Fournier
3aae0f5300 More cleanups...several ports are major redundancies of other ports 1997-12-19 02:46:25 +00:00
Marc G. Fournier
3ad815fc2a port.c no longer required...individual functions that were in there are
auto-generated via configure

individual functions in individual files
1997-12-19 02:27:20 +00:00
Marc G. Fournier
5379b84eff More cleanups. I can now compile without PORTNAME being defined n
Makefile.global.

End result, if all goes well, should allow for much easier porting, since
there will no longer be a concept of a "port".  Most, if not everything,
*should* be determined by configure, or by the compiler itself.  Still
work to be done though :)
1997-12-19 02:09:10 +00:00
Bruce Momjian
30856a3904 copy query cleanup. 1997-12-18 19:46:37 +00:00
Bruce Momjian
72c296dffc Remove init_query_planner(), merged into planner(). 1997-12-18 19:41:44 +00:00
Bruce Momjian
e9182152ec Fix copy for no aggregates. 1997-12-18 19:13:49 +00:00
Bruce Momjian
6a45941f2f Remove Existential, and ifdef out generate_fjoin. Neither did anything. 1997-12-18 12:54:45 +00:00
Bruce Momjian
4469eb63a3 Cost cleanup. 1997-12-18 12:30:44 +00:00
Bruce Momjian
d3f0e87d17 Cost cleanup. 1997-12-18 12:21:02 +00:00
Bruce Momjian
6b00ec3713 Cleanup of agg copy. 1997-12-18 05:58:40 +00:00
Bruce Momjian
bf9c9f716c Cleanup of agg copy. 1997-12-18 04:33:31 +00:00
Bruce Momjian
c64cc3228a Fix Query handling for inheritance, and cost computations. 1997-12-18 03:03:41 +00:00
Thomas G. Lockhart
d451a3b3bc Enable timespan_finite() and text_timespan() routines (was commented out).
Define an "ISO-style" timespan output format with "hh:mm:ss" fields.
 Enabled by DateStyle = USE_ISO_DATES.
1997-12-17 23:22:17 +00:00
Thomas G. Lockhart
5af05c0a59 Move declarations for timespan2tm() and tm2timespan() from dt.c to here. 1997-12-17 23:19:28 +00:00
Bruce Momjian
5266471a2f Rename Query label so ctags finds real structure. 1997-12-17 18:21:37 +00:00
Bruce Momjian
d158fce8eb Add optimizer README file. 1997-12-17 18:02:33 +00:00
Marc G. Fournier
542d4e528d First pass through, of many to come, towards making the whole source
tree "non-PORTNAME" dependent.  Technically, anything that is PORTNAME
dependent should be able to be derived at compile time, through configure
or through gcc
1997-12-17 04:59:16 +00:00
Marc G. Fournier
9ef6b32c47 Makefile cleaned up
async.c: #include <port-protos.h> surrounded by an #ifdef HAVE_STRDUP

vacuum.c: #include <port-protos.h> commented out...can someone comment as
          to why it was included, as it doesn't seem to have any effect
          under FreeBSD so far...would like some sort of #ifdef wrapper
          like async.c if possible
1997-12-17 04:44:50 +00:00
Marc G. Fournier
e2d9501094 Clean up the Makefiles
Essentially, this cleans things up so that if PORTNAME isn't defined (I'm
    working on getting rid of it for FreeBSD, at least, to see if its possible)
    none of the PORTNAME related stuff gets passed around.

	Had a little bit of -I related redundancy as well
1997-12-17 04:31:34 +00:00
Marc G. Fournier
ceabf8cab9 Make it entirely possible for PORTNAME to be undefined 1997-12-17 04:03:30 +00:00
Marc G. Fournier
6bdcad66e4 Add recognition for 'machten' 1997-12-17 03:23:52 +00:00
Thomas G. Lockhart
b31df3ebb7 Mention PST8PDT explicitly in the banner message (rather than PST/PDT). 1997-12-16 16:01:05 +00:00
Thomas G. Lockhart
6316f4d3db Define text, varchar, and bpchar string length functions. 1997-12-16 15:59:11 +00:00
Thomas G. Lockhart
6873af55cf Use MAXPGPATH to declare size of socket name storage. 1997-12-16 15:58:14 +00:00
Thomas G. Lockhart
8de20a3aed Use environment variable PGDATESTYLE on backend startup to initialize
date/time formats and conventions.
1997-12-16 15:57:00 +00:00
Thomas G. Lockhart
a58825a467 Add declarations for text, bpchar, and varchar length functions.
Remove declarations in builtins.h duplicated in dt.h.
Change a few return type declarations to use "type *"
 rather than "struct ...".
1997-12-16 15:55:17 +00:00
Thomas G. Lockhart
3551ee097f Add declarations for text, bpchar, and varchar length functions. 1997-12-16 15:53:17 +00:00
Thomas G. Lockhart
331a163693 Allow multiple-argument functions in constraint clauses.
Formerly allowed only single arguments.
Declare column constraints using the usual list mechanism rather
 than explicit itemized lists.
Remove NOTNULL from default clause syntax (retain "NOT NULL").
 NOTNULL is not SQL92; eventually remove it from expressions too?
Move ISNULL, NOTNULL to Postgres-specific token declarations.
Fix up tabs and indenting on new CREATE USER commands.
1997-12-16 15:50:54 +00:00
Thomas G. Lockhart
640fe03bcf Improve (well, ok, fix) generated constraint name for column CHECK clause. 1997-12-16 15:45:46 +00:00
Bruce Momjian
eb825d356e Fix order of keywords, must be alphabetical. 1997-12-16 05:04:00 +00:00
Bruce Momjian
0f1802f00c Fix for user password packet processing, from Goran Thyni. 1997-12-15 22:03:59 +00:00
Bruce Momjian
ab179d6940 Make password null on startup. 1997-12-12 16:26:36 +00:00
Bruce Momjian
c60f70b53f Rename pg_plan and pg_eval to be more meaningful. 1997-12-11 17:36:58 +00:00
Bruce Momjian
645cc13276 Remove PGDATA setting and use DataDir. 1997-12-11 17:03:52 +00:00
Bruce Momjian
b69359e2d7 Spark/Linux patch for locking, from Tom Szybist 1997-12-09 20:55:33 +00:00
Marc G. Fournier
da72b903ff Major code cleanup following the pg_password insertion...
...malloc/free -> palloc/pfree
	...fopen/fclose -> AllocateFile/FreeFile
1997-12-09 03:11:25 +00:00
Thomas G. Lockhart
405740ace6 Include informational messages added for implicit index creation. 1997-12-09 01:46:31 +00:00
Thomas G. Lockhart
2ac4cf5502 Add information message about implicitly created indices.
Check for duplicate implicit index names and generate unique names.
1997-12-09 01:44:14 +00:00
Thomas G. Lockhart
a440f8e3d7 Remove trailing period from an elog message.
Most other messages do not have one.
1997-12-09 01:40:30 +00:00
Bruce Momjian
53026db75e More VARHDRSZ additions. 1997-12-08 04:42:48 +00:00
Marc G. Fournier
bec35da8bf Add error check on getenv("DATADIR")
Add code to set DATADIR in postmaster.c if -D is used
1997-12-07 20:57:45 +00:00
Bruce Momjian
a68a132a6c Add VARHDRSZ where needed. Many places just used 4. 1997-12-06 22:57:36 +00:00
Thomas G. Lockhart
d358456ca3 Add test for multi-character char(). 1997-12-05 01:14:55 +00:00
Bruce Momjian
5a5cb30096 Fix tolower loops to go in proper direction for cache. 1997-12-05 01:13:24 +00:00
Marc G. Fournier
84fc5c4aed I found one other change that I would like to make to the
src. It is in the function ParseACL. When I find that I
can not allocate enough memory for the ACL structure I
return an NULL instead of doing an exit_nicely(g_conn);

From: Matthew C Aycock <maycock@scuba.pcpipeline.com>
1997-12-05 01:04:25 +00:00
Thomas G. Lockhart
733f2a43cc Change constraint syntax to SQL92 style.
Add tests for PRIMARY KEY and UNIQUE clauses.
1997-12-05 00:01:22 +00:00
Thomas G. Lockhart
5d7c9119fa Define USE_GERMAN_DATES for use in date/time I/O functions. 1997-12-04 23:58:01 +00:00
Thomas G. Lockhart
dc88e795d1 Change Constraint structure to be a full node structure.
Add new constraint types PRIMARY, UNIQUE.
1997-12-04 23:55:52 +00:00
Thomas G. Lockhart
77356a7fc1 Add Constraint node type.
Remove TimeRange node type tag (everything else already gone).
1997-12-04 23:43:59 +00:00
Thomas G. Lockhart
352b36877f Add 'GERMAN' style to date/time output.
Probably have it wrong (dd.mm/yyyy) but can change it when we know.
 Input routines always handled it.
1997-12-04 23:30:52 +00:00
Thomas G. Lockhart
d7e0e61d84 Run through toupper() conversion in the forward direction.
Most processors should optimize this a bit better wrt cache prefetch.
1997-12-04 23:28:20 +00:00
Thomas G. Lockhart
6ad698c928 Add some printing capability for a few more node types (CreateStmt,
IndexStmt, IndexElem, ColumnDef).
1997-12-04 23:20:32 +00:00
Thomas G. Lockhart
0295864514 Add 'GERMAN' option to DateStyle. 1997-12-04 23:17:13 +00:00
Thomas G. Lockhart
0569136e48 Change Constraint structure name from ConstraintDef to Constraint.
Change reference to field inside to be compatible with new definition
 as a "node" structure rather than a specialty structure.
1997-12-04 23:15:28 +00:00
Thomas G. Lockhart
1ac4ae4993 Add SQL92-compliant syntax for constraints.
Implement PRIMARY KEY and UNIQUE clauses using indices.
1997-12-04 23:07:23 +00:00
Bruce Momjian
8d30b40843 Update description for PGHOST and unix domain sockets. Add warning for failed connections. 1997-12-04 20:32:35 +00:00
Bruce Momjian
7d2fafe636 Update description for PGHOST and unix domain sockets. Add warning for failed connections. 1997-12-04 20:26:37 +00:00
Marc G. Fournier
8a57e21c30 Incorporate patch from Matt(maycock@intelliquest.com) for dumping ACLs
Clean up formatting of code

Integrate new functions into dumpTable


This is not tested yet...have to recompile server due to patches from
Todd...but this compiles cleanly as it stands now
1997-12-04 01:31:28 +00:00
Marc G. Fournier
a91ad1af09 Missed a few files from Todd's patch...oops :) 1997-12-04 00:34:01 +00:00
Marc G. Fournier
4c04f7724e From: todd brandys <brandys@eng3.hep.uiuc.edu>
An extension to the code to allow for a pg_password authentication database
that is *seperate* from the system password file
1997-12-04 00:28:15 +00:00
Bruce Momjian
333323f304 Fix vacuum analyze syntax problem. 1997-12-02 16:09:15 +00:00
Marc G. Fournier
899326a78b the -l option doesn't take a port option, so the man page shouldn't say it
does
1997-12-02 03:43:54 +00:00
Marc G. Fournier
3253f9e222 gmake distclean wasn't removing the configure generated Makefile in
pg_version...

...fixed
1997-12-02 03:19:42 +00:00
Thomas G. Lockhart
8f4865bdd7 Remove premature code in constraint parsing.
Change elog WARN to NOTICE for unimplemented constraints.
1997-12-02 02:54:15 +00:00
Marc G. Fournier
9257cb65b2 Linux related change to .similar to handle 'a.out' files...
From: Herb Richter <hgr@buynet.com>
1997-12-02 02:43:08 +00:00
Bruce Momjian
b05eddaaab Fix pg_dump, and libpq changes. 1997-12-01 22:02:49 +00:00
Bruce Momjian
dfc1a6a848 Document pg_dump -z, clean up option list. Fix problem with libpq handling of field names uppercase code. 1997-12-01 21:01:24 +00:00
Thomas G. Lockhart
df823bc42d Deep-six tests using time travel, which has been removed from Postgres. 1997-12-01 02:51:07 +00:00
Thomas G. Lockhart
7a86a2a9e5 Add tests for varchar() and combinations of string types. 1997-12-01 02:48:47 +00:00
Thomas G. Lockhart
1d7b6f14e2 Adjust tests to reflect removal of time travel.
Add tests for strings and varchar.
1997-12-01 02:46:13 +00:00
Thomas G. Lockhart
f901971c86 Adjust output to reflect changes in tests. 1997-12-01 02:44:53 +00:00
Thomas G. Lockhart
07c1837f50 Change elog WARN messages for UNIQUE and PRIMARY, FOREIGN KEY
to NOTICE messages so that execution proceeds rather than halting.
 These clauses are ignored as stated in the messages.
Allow NOT NULL UNIQUE syntax (both were allowed individually before).
Allow Postgres-style casting ("::") of non-constants.
1997-11-30 23:11:10 +00:00
Thomas G. Lockhart
361f9e7f8d Add comments and move a few declaration blocks to help readability.
No functional changes this time!
1997-11-30 23:05:39 +00:00
Thomas G. Lockhart
b12ba5f695 Specify hash table support functions for float8 and int4 rather than using
btree support functions. Don't know why this was that way, but would
 assume that these should be consistant with all other types with
 hash support. Regression tests OK.
Change a few comments and field alignment to make things more readable.
1997-11-30 23:03:28 +00:00
Thomas G. Lockhart
2c98143681 Add datetime and timespan hash index declarations. Use float8 for both;
certainly OK for datetime since it is a float8 and should be OK for
 timespan since the first field within timespan is a float8.
Use float8 hash function for time type (rather than char8).
1997-11-30 22:58:07 +00:00
Thomas G. Lockhart
d16b4767fe Remove duplicate block of declarations. Must have been introduced recently
since I've run ./duplicate_oids (and found no problems) in the last
 couple of months.
Add and modify some DESCR() entries to describe functions.
1997-11-30 22:52:24 +00:00
Thomas G. Lockhart
abedcddbd1 Change hash field for a few equality operators so all have it set.
Don't know why these few were not already this way, and don't know if
  there is some hidden problem with this, but assume it was done
  accidentally as entries were copied from other operators.
 Regression tests are OK, but...
Move one block of declaration source to keep OIDs in increasing order.
 Did not change OID values, just moved source code.
1997-11-30 22:49:22 +00:00
Thomas G. Lockhart
9faa6cabc5 Add pg_type.h to include list to regain declaration of type OID assignments.
Lost these when some include files were reorganized.
 Regression test could not compile.
1997-11-30 22:42:58 +00:00
Bruce Momjian
7059464335 Fix for \dd on types. 1997-11-30 17:46:01 +00:00
Bruce Momjian
002796b5ca Rename heap_destroyr to heap_destroy, heap_destroy to heap_destroy_with_catalog. 1997-11-28 17:28:02 +00:00
Bruce Momjian
c445ba331b Rename heap_create to heap_create_and_catatlog, rename heap_creatr to heap_create(). 1997-11-28 04:40:40 +00:00
Bruce Momjian
a8926e0461 Salt fix for password, from Tatsuo Ishii. 1997-11-27 03:11:55 +00:00
Bruce Momjian
241a87b951 Prevent flushing from packets, by Massimo. 1997-11-27 03:01:12 +00:00
Bruce Momjian
db00632e0f Cleaups of comments. 1997-11-27 02:23:02 +00:00
Bruce Momjian
bac80c218e Add README for parser directory 1997-11-26 15:36:00 +00:00
Bruce Momjian
d79b9a1b7a Re-order args for TypeCreate() to be clearer. 1997-11-26 04:50:47 +00:00
Bruce Momjian
7c00ffb843 Fix from Zeugswetter Andreas DBT for Sendproc. 1997-11-26 04:37:53 +00:00
Bruce Momjian
983ec2cb4b Make parser functions static where possible. 1997-11-26 03:54:23 +00:00
Bruce Momjian
b704426618 Make parser functions static where possible. 1997-11-26 03:43:18 +00:00
Bruce Momjian
97ad0b1cd4 \dd fix. 1997-11-26 02:34:28 +00:00
Bruce Momjian
43c7114b48 Cleanup up include files. 1997-11-26 01:26:13 +00:00
Bruce Momjian
598e86f3b3 Cleanup up include files. 1997-11-26 01:14:33 +00:00
Bruce Momjian
4a5b781d71 Break parser functions into smaller files, group together. 1997-11-25 22:07:18 +00:00
Bruce Momjian
3aff4011c7 Remove gram problems with archive. 1997-11-24 16:55:22 +00:00
Bruce Momjian
91742c5c24 Change heading. 1997-11-24 14:15:11 +00:00
Bruce Momjian
4857de6be4 Cleanup wrapping in \d commands. 1997-11-24 14:05:02 +00:00
Bruce Momjian
a986b7ba4d Move descriptions to pg_proc, add descriptions. 1997-11-24 13:43:29 +00:00
Bruce Momjian
49656346b8 Move dbcommands.c to commands/. It should not be in the parser directory. 1997-11-24 05:32:56 +00:00
Bruce Momjian
36e3df0767 Move dbcommands.c to commands/. It should not be in the parser directory. 1997-11-24 05:21:03 +00:00
Bruce Momjian
f7f2e18f8e Remove tqual.h includes not needed. 1997-11-24 05:09:50 +00:00
Bruce Momjian
1409819a87 Fix for textcat on varchar() fields. 1997-11-23 21:39:12 +00:00
Bruce Momjian
f4253b0b49 Archive cleanups. 1997-11-21 19:59:39 +00:00
Bruce Momjian
195f78e43c More archive cleanup. 1997-11-21 19:12:41 +00:00
Bruce Momjian
043cebce2b More archive cleanup. 1997-11-21 19:02:59 +00:00
Bruce Momjian
629e27284d Remove unused files. 1997-11-21 18:22:04 +00:00
Bruce Momjian
3fa2bb316c Remove archive stuff. 1997-11-21 18:12:58 +00:00
Bruce Momjian
0889dcd6f7 Remove archive stuff. 1997-11-21 18:04:26 +00:00
Bruce Momjian
e9e1ff226f Remove all time travel stuff. Small parser cleanup. 1997-11-20 23:24:03 +00:00
Bruce Momjian
e075271c17 Fix socket file permissions, from Goran Thyni. 1997-11-19 18:28:59 +00:00
Bruce Momjian
58527aa227 Add to .similar file, Tatsuo Ishii 1997-11-19 17:57:42 +00:00
Bruce Momjian
474de35053 FIx for unix domain sockets, from Goran Thyni. 1997-11-19 17:52:00 +00:00
Vadim B. Mikheev
21261b031c Call ExecEvalExpr with &isDone (not with NULL). 1997-11-19 05:28:14 +00:00
Bruce Momjian
b686104cd5 Change \df order. 1997-11-19 03:14:19 +00:00
Bruce Momjian
7372b8c2da Remove stuff that is now in psql \d. 1997-11-18 23:04:27 +00:00
Vadim B. Mikheev
c5d7a27275 Get rid of unused variable 'address'. 1997-11-18 07:58:10 +00:00
Bruce Momjian
20858bdd96 Make \d commands not wrap over 80 cols. 1997-11-18 06:46:31 +00:00
Bruce Momjian
79daac6bad Add descriptions for types and operators. 1997-11-18 05:22:51 +00:00
Bruce Momjian
bd6733f9ce Clean out pgbuiltin now that new psql \d commands exist. 1997-11-17 22:15:03 +00:00
Bruce Momjian
d0928a3af3 Fix \e for empty file. 1997-11-17 17:54:24 +00:00
Bruce Momjian
d0471244e6 Remove 16 char limit on system table/index names. Rename system indexes. 1997-11-17 16:59:36 +00:00
Thomas G. Lockhart
80c1e82232 Unscramble port selection logic to avoid compiler complaints about
uninitialized variables. I _think_ the logic is preserved...
1997-11-17 16:42:39 +00:00
Thomas G. Lockhart
c2f4779ddf Define prototype for ExecutorLimit() to avoid compiler complaints. 1997-11-17 16:41:04 +00:00
Thomas G. Lockhart
680ef08511 Add DTK_DOY to help decode day of year fields. 1997-11-17 16:39:58 +00:00
Thomas G. Lockhart
45a8b666c0 Include first text in some type descriptions (~29 entries). 1997-11-17 16:39:16 +00:00
Thomas G. Lockhart
4b19101fc3 Update UNION and subselect syntax.
Support SQL92 syntax for type coersion of strings (type 'typeval').
 Example: "DATETIME 'now'". This works only for string constants and can
 not replace the CAST and ::type syntax which behave identically in this
 context.
1997-11-17 16:37:24 +00:00
Thomas G. Lockhart
6df962668a Update generated source for scan.l. 1997-11-17 16:33:21 +00:00
Thomas G. Lockhart
3d4d1e14f8 Implement SQL92 binary and hexadecimal string decoding (b'10' and x'1F').
Check decoding of integer in x - y syntax (already done for most ints).
1997-11-17 16:31:39 +00:00
Thomas G. Lockhart
2fa330284c Use limits.h for INT, SHRT, and SCHAR min and max values rather than
hardcoded values.
1997-11-17 16:26:27 +00:00
Thomas G. Lockhart
174f984b76 Use SHRT_MIN and SHRT_MAX for 2-byte integer limits. 1997-11-17 16:24:17 +00:00
Thomas G. Lockhart
e7946a53ad Allow fractional values for delta times (e.g. '2.5 days').
Check valid numeric input more carefully for delta times.
Implement day of year as possible input to datetime_part().
1997-11-17 16:23:33 +00:00
Thomas G. Lockhart
55a6b7a9be Include unistd.h to get read/write function declarations.
Remove unused variable addrLen.
1997-11-17 16:18:07 +00:00
Thomas G. Lockhart
8e86c46be3 Add storage/ipc.h include file to get read/write function declarations. 1997-11-17 16:17:14 +00:00
Thomas G. Lockhart
c47eaac952 Fix compiler complaints about mismatched pointer args using coersions. 1997-11-17 16:10:06 +00:00
Bruce Momjian
0f62b3024e Fix for \e on empty file. 1997-11-17 05:23:11 +00:00
Marc G. Fournier
9bcf350cc7 Apply Bryan's IPC Patches
From: Bryan Henderson <bryanh@giraffe.netgate.net>
1997-11-17 03:47:31 +00:00
Bruce Momjian
930bce33db Re-ordeer new \d command output. 1997-11-16 05:32:16 +00:00
Bruce Momjian
12fc33077b New \dS psql command. initdb cleanup. 1997-11-16 04:36:52 +00:00
Bruce Momjian
1c32d285a6 Remove pg_magic, defaults, server, hosts, and demon tables. unused. 1997-11-15 20:58:05 +00:00
Bruce Momjian
0dec3a8d37 Fix problem of COPY before vacuum. 1997-11-15 17:15:35 +00:00
Bruce Momjian
4e9df155f0 Add new \df psql option and oid8types() function. 1997-11-15 16:32:25 +00:00
Thomas G. Lockhart
2e0976e003 Fix testing problem when 'current' equal to 'now' for separate inserts
on fast machines with fast disks.
Adjust a few other tests to be more complete.
1997-11-15 02:55:57 +00:00
Thomas G. Lockhart
644b37c095 Add mention of new environment variables for session initialization.
Cross-reference libpq(3).
1997-11-15 02:47:23 +00:00
Bruce Momjian
2f4ccfe053 Make flowchart file smaller. 1997-11-14 22:00:32 +00:00
Bruce Momjian
4cbc06cff1 Add new psql \da, \do, and \dT options. 1997-11-14 21:38:25 +00:00
Thomas G. Lockhart
208dae3727 Set time zone and date style environment variables.
Update banner message regarding time zone.
1997-11-14 15:57:12 +00:00
Thomas G. Lockhart
0f2189efff Include flex output in the standard distribution to fix problems with
old AT&T lexers and exclusive states (Solaris has trouble and probably
 others).
1997-11-14 15:50:22 +00:00
Thomas G. Lockhart
6eaafef1df Supress cleaning scan.c since we will try to include it in the distribution.
This should help Solaris and (presumably) other distributions with
 old AT&T-descended lex programs which can't handle "exclusive states".
1997-11-14 15:48:19 +00:00
Thomas G. Lockhart
97d2b92384 Add flag to supress one compiler warning regarding unused "unput" function
in flex-specific code.
1997-11-14 15:43:27 +00:00
Thomas G. Lockhart
e9c31055e6 Add mention of PGDATESTYLE, PGTZ, PGCOSTHEAP, PGCOSTINDEX, PGRPLANS, PGGEQO
as initialization environment variables.
1997-11-14 15:41:30 +00:00
Thomas G. Lockhart
3a73060ba5 Add other initialization environment variables:
PGCOSTHEAP, PGCOSTINDEX, PGRPLANS, PGGEQO
 (PGDATESTYLE, PGTZ already defined)
1997-11-14 15:38:31 +00:00
Thomas G. Lockhart
f3311457ec Reformat parser table (cosmetic only). 1997-11-14 15:34:09 +00:00
Bruce Momjian
430169a5ea FIx for indexing regex stuff. Change rowoid to objoid. 1997-11-14 06:09:07 +00:00
Bruce Momjian
ea4223c45f FIx for indexing regex stuff. Change rowoid to objoid. 1997-11-14 05:57:46 +00:00
Bruce Momjian
145bae2759 pg_description cleanup. 1997-11-13 03:36:42 +00:00
Bruce Momjian
5071ae2972 Add pg_description table for info on tables, columns, operators, types, and aggregates. Modify psql with new \dd operator to access description 1997-11-13 03:23:18 +00:00
Bruce Momjian
7e48d427c8 File has moved to include/catalog. 1997-11-12 03:30:33 +00:00
Thomas G. Lockhart
9507e539e2 Remove unnecessary inclusion of <ctype.h>. 1997-11-10 15:43:26 +00:00
Thomas G. Lockhart
367089b0c1 Add PGTZ environment variable to initialization code.
Rename PG_DATESTYLE to PGDATESTYLE environment variable.
Move environment variable code to a different place so it now works!
Note that regression tests can now run with "setenv PGTZ PST8PDT"
 at the frontend rather than requiring the backend to have TZ set.
1997-11-10 15:41:58 +00:00
Thomas G. Lockhart
4ebc4e39d1 Do a more complete job of supporting time zone information.
Try to save pre-existing TZ environment variable if possible.
Includes code from Keith Parks.
1997-11-10 15:37:15 +00:00
Thomas G. Lockhart
b42e37bcde Change quickdie elog notice to a single message.
Clean up FloatExceptionHandler elog message source code.
1997-11-10 15:24:56 +00:00
Thomas G. Lockhart
25e950fca4 Change messages regarding "TimeRange" to say that time travel is no longer
available.
Remove lots of #ifdef'd debugging print statements.
1997-11-10 15:22:36 +00:00
Thomas G. Lockhart
ced2ee8210 Clean up path handling esp. when interpreting environment variables.
Remove unused old code.
1997-11-10 15:17:44 +00:00
Thomas G. Lockhart
fe36d461c2 Add errormsg initialization from patch by Keith Parks. 1997-11-10 15:15:40 +00:00
Thomas G. Lockhart
2b51c92d30 Clean up handling of environment variables in path names. 1997-11-10 15:14:34 +00:00
Bruce Momjian
725bbde05c Clean up indenting. 1997-11-10 05:16:00 +00:00
Bruce Momjian
baeb8790ac Fix case issues with quotes. 1997-11-10 05:10:50 +00:00
Marc G. Fournier
0f367cf8c8 From: "Gillies, Robert" <GilliesR@Nichols.com>
Add: Stratus computer (a fault tolerant Unix box running an Intel I960
processor).
1997-11-10 03:31:49 +00:00
Bruce Momjian
50729ac764 Patch from Goran Thyni 1997-11-10 02:21:18 +00:00
Marc G. Fournier
242625f26b From: Bryan Henderson <bryanh@giraffe.netgate.net>
My analysis of the formerly mentioned IPC reinitialization problem was
hampered by an imprecise error message.  I have rewritten it so it is
clearer and more accurate.
1997-11-09 04:47:09 +00:00
Marc G. Fournier
213d7b1ae3 From: Bryan Henderson <bryanh@giraffe.netgate.net>
The attached patch makes elog() write the message to stderr if there is
no frontend to talk to.
1997-11-09 04:43:35 +00:00
Marc G. Fournier
8d0fe2d0d4 Oops, shouldn't have added that extra, it seems... :) 1997-11-09 03:58:20 +00:00
Marc G. Fournier
3dfcef7c5f Add i586-pc-sco3.2v5.0.2 to .similar file
Pointed out by: Pieter Huyser <pieter@inetsys.alt.za>
1997-11-09 03:45:39 +00:00
Bruce Momjian
6016148c61 new alpha linux locking from Travis Melhiser <melhiser@viper.co.union.nc.us> 1997-11-07 21:35:41 +00:00
Bruce Momjian
06a7001350 Update postmaster manual page. 1997-11-07 21:25:07 +00:00
Bruce Momjian
5af43965cf Update of Java driver from Peter Mount. 1997-11-07 21:07:48 +00:00
Bruce Momjian
c17fa36d3c Add Unix domain socket support, from Goran Thyni, goran@bildbasen.se 1997-11-07 20:52:15 +00:00
Thomas G. Lockhart
27b12bfd54 Include transam.h to get NullTransactionId defined
for use by recently created macros.
1997-11-07 18:39:38 +00:00
Thomas G. Lockhart
4676b3034a Routines for database initial access info and support. 1997-11-07 07:05:46 +00:00
Thomas G. Lockhart
8a7f79c83c Add database.c for database initial access info and support. 1997-11-07 07:03:37 +00:00
Thomas G. Lockhart
acc2843025 Implement CREATE DATABASE/WITH LOCATION=.
Implement SET keyword = DEFAULT and SET TIME ZONE DEFAULT.
Re-enable JOIN= option in CREATE OPERATOR statement (damaged for v6.2).
Allow more SQL and/or Postgres reserved words as column identifiers
 or, if there are shift/reduce problems, at least as column labels.
1997-11-07 07:02:10 +00:00
Thomas G. Lockhart
6210dd5264 File is created by make from source in ../output 1997-11-07 06:47:41 +00:00
Thomas G. Lockhart
ea567d2fad Declare routines which support SET keyword = value SQL commands. 1997-11-07 06:45:16 +00:00
Thomas G. Lockhart
7016678aaf Enable SET value = DEFAULT by passing null parameter to parsers.
Enable SET TIME ZONE using TZ environment variable.
1997-11-07 06:43:16 +00:00
Thomas G. Lockhart
b2905ea43a Describe new command to create alternate database locations. 1997-11-07 06:40:45 +00:00
Thomas G. Lockhart
7d1f2f8a27 Support alternate database locations. 1997-11-07 06:38:51 +00:00
Thomas G. Lockhart
d98f2f9985 Support "with location" capability for database creation. 1997-11-07 06:33:57 +00:00
Thomas G. Lockhart
6698389349 Change error message for rejected input. 1997-11-07 06:32:05 +00:00
Thomas G. Lockhart
c934ee7859 Change phrasing of input error message.
Add istrue() and isfalse() routines to implement SQL3 IS TRUE and IS FALSE.
1997-11-07 06:30:20 +00:00
Thomas G. Lockhart
7e1a8a90f8 Support "delimited identifiers" for \d tablename command.
This allows mixed-case identifiers if surrounded by double quotes.
Add mention of "with location" clause for "create database" in help.
1997-11-07 06:27:55 +00:00
Thomas G. Lockhart
c97f6fd197 Add "-D location" to specify alternate database location. 1997-11-07 06:25:25 +00:00
Thomas G. Lockhart
75d5ce28ea Add initlocation. 1997-11-07 06:24:33 +00:00
Thomas G. Lockhart
7387e88720 Change "more" to "cat" to allow typeahead while making backend. 1997-11-07 06:22:36 +00:00
Thomas G. Lockhart
b5417a39da Create alternate location(s) for databases. 1997-11-07 06:21:39 +00:00
Bruce Momjian
5aaf00f3f3 Remove NOT_USED for Massimo. 1997-11-05 21:18:59 +00:00
Bruce Momjian
7589967613 Remove time travel from manuals. 1997-11-03 04:47:08 +00:00
Bruce Momjian
475a8873b0 Add paging for \d, and fix \i. 1997-11-03 04:21:49 +00:00
Bruce Momjian
89ad327099 Portability fix for pg_passwd. 1997-11-02 18:15:20 +00:00
Vadim B. Mikheev
32cd09ac6d Good Bye, Time Travel! 1997-11-02 15:27:14 +00:00
Bruce Momjian
6cc0a00dec Fix acl error, and remove duplicate pqtrace. 1997-11-01 05:21:57 +00:00
Bruce Momjian
1e7ba76e43 Indexes for LIKE and ~, !~ operations. 1997-10-31 00:50:39 +00:00
Bruce Momjian
0308f91cd2 No more warnings on macros, thanks VAdim. 1997-10-30 23:37:01 +00:00
Bruce Momjian
fcb47f8884 Remember release.txt change. 1997-10-30 22:37:28 +00:00
Bruce Momjian
818f2644e9 Update version to 6.3. dump/reload for 6.1 version users. 1997-10-30 22:09:04 +00:00
Bruce Momjian
65c00f7e80 We have multi-column indexes, so update manual. 1997-10-30 18:41:03 +00:00
Bruce Momjian
ef1fc0c90d FIx for SCO compiles. 1997-10-30 18:31:47 +00:00
Bruce Momjian
0e58306857 Fix for java to allow password, european dates,from Peter T Mount 1997-10-30 18:24:44 +00:00
Bruce Momjian
2cc73c0d42 FIx for libptcl make, from Tatsuo Ishii. 1997-10-30 17:36:58 +00:00
Bruce Momjian
9a8fcee342 Patch for tcl library crash, from Jan Wieck. 1997-10-30 17:29:57 +00:00
Bruce Momjian
9f133d23ff Remove duplocate lock_timeout value. 1997-10-30 17:23:59 +00:00
Thomas G. Lockhart
e037c351d4 Update for modified quoting style in some error messages. 1997-10-30 16:53:51 +00:00
Thomas G. Lockhart
be74113f76 Add initial backend support for SET/SHOW/RESET TIME ZONE.
Uses TZ environment variable.
 Needs additional schemes for brain-dead SQL92 time offsets.
1997-10-30 16:52:11 +00:00
Thomas G. Lockhart
0dd738148c Support SQL92 delimited identifiers by checking some attribute names
for mixed-case and surrounding with double quotes.
1997-10-30 16:48:03 +00:00
Thomas G. Lockhart
cc1b420cfd Add routines istrue() and isfalse() to directly evaluate boolean type. 1997-10-30 16:45:12 +00:00
Thomas G. Lockhart
770352d279 Add support for SQL92 delimited identifiers.
Add support for SQL3 IS TRUE and IS FALSE.
Augment support for SQL92 SET TIME ZONE...
1997-10-30 16:39:27 +00:00
Thomas G. Lockhart
0a9be2db9b Add support for delimited identifiers. Include new exclusive state "xd".
Remove unused ScanString variable and code.
1997-10-30 16:36:39 +00:00
Thomas G. Lockhart
0175759e17 Fix up elog messages for consistant usage of quotes around arguments. 1997-10-30 16:34:22 +00:00
Bruce Momjian
80440a51fa Fix for international identifiers, from Tatsuo Ishii 1997-10-30 15:28:25 +00:00
Bruce Momjian
06d88ecb17 Fix for when POSIX time not defined. 1997-10-30 14:06:47 +00:00
Bruce Momjian
1017ddd003 Fix for java timestamp type from teunis@sigil.computersupportcentre.com 1997-10-30 13:55:41 +00:00
Vadim B. Mikheev
6cfe951a42 CREATE PROCEDURAL LANGUAGE mans (Jan). 1997-10-30 05:38:20 +00:00
Bruce Momjian
43514b8485 Irix LORDER addition. 1997-10-30 05:36:38 +00:00
Bruce Momjian
58ed1232f5 Fix for netbsd locking, from Henry B. Hotz. 1997-10-30 05:24:19 +00:00
Bruce Momjian
e2617c856e Fix for compile warning, from Ernst Molitor. 1997-10-30 05:07:58 +00:00
Bruce Momjian
5680f8795f Fix for array handling, from Gerhard Hintermayer 1997-10-30 05:00:56 +00:00
Bruce Momjian
1dfde614a4 Make configure more automated, from Brook Milligan. 1997-10-30 04:46:45 +00:00
Bruce Momjian
cf1bfb3588 Fix for perl from Brook Milligan 1997-10-30 04:38:30 +00:00
Bruce Momjian
a47158a0e1 Add script to check regression tests. 1997-10-30 04:27:14 +00:00
Bruce Momjian
c35d7fb835 Rename pg_dump -H option to -h. 1997-10-30 03:59:59 +00:00
Bruce Momjian
868859b7e3 AIX patch from Darren King. 1997-10-30 03:37:28 +00:00
Bruce Momjian
9939e55513 Remove strcasecmp for univel. 1997-10-30 03:28:18 +00:00
Bruce Momjian
d48006180c Generate error on large integer. 1997-10-30 01:55:49 +00:00
Bruce Momjian
97b1bb2281 New backend_dir html source. 1997-10-29 23:48:18 +00:00
Vadim B. Mikheev
5071d3124a Added support for shlib for BSD44_derived & i386_solaris. 1997-10-28 15:13:10 +00:00
Vadim B. Mikheev
7bff4c5078 Now we are able to CREATE PROCEDURAL LANGUAGE (Thanks, Jan). 1997-10-28 15:11:45 +00:00
Bruce Momjian
9db2992640 Rename postgres95 to postgresql. 1997-10-28 03:20:31 +00:00
Bruce Momjian
ee08c36dd3 New backend dirs html file. 1997-10-27 17:53:38 +00:00
Bruce Momjian
8cae12b13b Add new html development tools, and flow chart. 1997-10-27 16:59:20 +00:00
Vadim B. Mikheev
6855820e8f c.h:
#define StrNCpy(dst,src,len)    \
	(strncpy((dst),(src),(len)),(len > 0) ? *((dst)+(len)-1)='\0' : \
	NULL,(void)(dst))
	     ^^^^^^ - to avoid "value computed is not used" from gcc
	in ma-a-any places (should to fix thouse places instead, but ...
	time)

config.h.in:
/*
 * TBL_FREE_CMD_MEMORY: free memory allocated for an user query inside
 * transaction block after this query is done.
 */
#define TBL_FREE_CMD_MEMORY
- this is default now.
1997-10-27 12:07:13 +00:00
Vadim B. Mikheev
9b3d93293a Free ascii representations of compared values! 1997-10-27 12:00:43 +00:00
Vadim B. Mikheev
a2c476b555 Use shared lock when building indices 1997-10-27 11:52:43 +00:00
Vadim B. Mikheev
110ba08a12 Fix binary cursors broken by MOVE implementation.
(Thanks to Bruce for finding what caused problem).
1997-10-27 08:55:16 +00:00
Thomas G. Lockhart
f15eeff1bd Modify to reflect changes in boolean input behavior (rejects bad input
rather than assuming FALSE).
1997-10-25 06:03:08 +00:00
Thomas G. Lockhart
ac357fb44c Remove extraneous row from user_relns table. Don't know where it came from... 1997-10-25 06:01:21 +00:00
Thomas G. Lockhart
2cad160f13 Have compiler use 486 instruction set. (Should add item in linux FAQ). 1997-10-25 05:58:56 +00:00
Thomas G. Lockhart
f10b639237 Add SQL92 "constants" CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP,
CURRENT_USER.
Add syntax for primary and foreign keys.
Change optional syntax in CREATE INDEX to avoid parsing conflict with
 TIMESTAMP WITH TIME ZONE data type (use USING <class> rather than WITH...).
Decouple various categories of data type syntax to allow the most possible
 non-ambiguous extensions to SQL92 for column names and labels. This should
 make the parser a bit more understandable, or at least easier to find
 where and how the data types are handled.
Support syntax for IN and EXISTS clauses with subselects.
Support SQL92 syntax for IS TRUE/IS FALSE/IS NOT TRUE/IS NOT FALSE.
1997-10-25 05:56:41 +00:00
Thomas G. Lockhart
27d0d1a159 Add SQL92 reserved words for primary and foreign keys.
Add keywords for national character types.
Shorted date/time keyword token names for convenience.
Add SQL3 reserved words TRUE and FALSE.
1997-10-25 05:44:11 +00:00
Thomas G. Lockhart
60fee0d67c Add conversion routines for int2, int4, and oid to and from text.
Change a few routine names to ensure <= 16 characters in name
 to fit correctly into pg_proc.
1997-10-25 05:40:43 +00:00
Thomas G. Lockhart
7f06f34636 Change column number constant to reflect change in column name
from "action" to "ev_action".
1997-10-25 05:38:52 +00:00
Thomas G. Lockhart
e9bb359d3e Change embedded query to reflect column name change from "action"
to "ev_action".
1997-10-25 05:37:07 +00:00
Thomas G. Lockhart
c5173fc58c Rename "TYPE" parser keyword token from P_TYPE to TYPE_P to conform
to changes in parser.
1997-10-25 05:34:07 +00:00
Thomas G. Lockhart
d8e260646e Reassign cash/float4 arithmetic operator oids to avoid duplicate oids. 1997-10-25 05:31:55 +00:00
Thomas G. Lockhart
a9a91b54c6 Add conversion functions for int2, int4, oid to and from text.
Shorten a few routine names to <= 16 characters long to fit in table.
1997-10-25 05:29:48 +00:00
Thomas G. Lockhart
b5f582b7ab Rename column to avoid "action" SQL92 reserved word. 1997-10-25 05:25:10 +00:00
Thomas G. Lockhart
4fa25b8c99 Shorten routine names to <= 16 characters to fit in pg_proc table. 1997-10-25 05:22:58 +00:00
Thomas G. Lockhart
c0087c9faf Add conversion routines for oid to and from text. 1997-10-25 05:21:54 +00:00
Thomas G. Lockhart
08b1a09ee0 Clean up comments. 1997-10-25 05:21:10 +00:00
Thomas G. Lockhart
317acd0818 Add conversions for int2 and int4 to and from text. 1997-10-25 05:19:22 +00:00
Thomas G. Lockhart
2c1557a2ff Fix occasional uninitialized variable fractional seconds
in DecodeTimeOnly(). Only present when seconds are not specified
 for input.
1997-10-25 05:18:17 +00:00
Thomas G. Lockhart
9f99e4c6b6 Add conversion from datetime to time data type.
Rename date+time conversion to datetime to ensure less than 16 characters
 in routine name (required to fit in pg_proc table).
1997-10-25 05:16:09 +00:00
Thomas G. Lockhart
0d6facbad6 Modify one last line to complete changes for StrNCpy() macro addition.
Before, char16 was missing last character for output.
1997-10-25 05:12:38 +00:00
Thomas G. Lockhart
4677f0a255 Add debugging statement enabled by CASHDEBUG symbol definition. 1997-10-25 05:11:06 +00:00
Thomas G. Lockhart
3eb1bc67b1 Check explicitly for valid input strings for both TRUE and FALSE.
Allow true/false, yes/no, 1/0. Throw elog warning if anything else.
Allow shorter strings, so "t", "tr", "tru" and "true" match "true".
Old behavior accepted anything starting with "t" as TRUE,
 everything else as FALSE.
1997-10-25 05:09:58 +00:00
Bruce Momjian
789d075021 StrNCpy cleanup. 1997-10-25 02:14:22 +00:00
Bruce Momjian
f3af1368bd Rename strNcpy to StrNCpy, and change third parameter. 1997-10-25 01:10:58 +00:00
Bruce Momjian
8b53f6e5b6 Fix alignment of source. 1997-10-24 15:51:37 +00:00
Vadim B. Mikheev
eca199d7b0 Debug stuff added to BlowawayRelationBuffers(). 1997-10-22 19:04:43 +00:00
Vadim B. Mikheev
bd305f3f06 Fix multi-column index scans in internal pages. 1997-10-22 19:02:52 +00:00
Bruce Momjian
8f4559d0e1 Fix \. in manual page. 1997-10-22 02:08:38 +00:00
Bruce Momjian
8a1a39c390 Update for 6.2.1 1997-10-18 16:59:06 +00:00
Vadim B. Mikheev
9620c7566f DEFAULT fixed 1997-10-17 11:35:33 +00:00
Vadim B. Mikheev
fcfb4d1df6 Changes due to fixed DEFAULT behaviour. 1997-10-17 09:59:09 +00:00
Thomas G. Lockhart
962c8bd66d Accept additional values for TRUE: y, Y, 1.
Leave all other input values to return FALSE.
In next version, do more checking for valid inputs for both TRUE and FALSE.
1997-10-17 05:38:32 +00:00
Thomas G. Lockhart
9c800b8e48 Fix delta time decoding for 12 AM/PM. 1997-10-17 05:36:01 +00:00
Bruce Momjian
b268758a3b New function PQcmdTuples. 1997-10-17 02:11:49 +00:00
Bruce Momjian
ed966c4617 Updates for 6.2.1. Update pgaccess to 0.61. Add to HISTORY. 1997-10-16 17:32:07 +00:00
Vadim B. Mikheev
05a436b327 DROP TRIGGER. 1997-10-16 06:59:23 +00:00
Vadim B. Mikheev
9b10d6ffda Ignore copies of columns specified in ORDER/GROUP BY 1997-10-16 06:58:38 +00:00
Bruce Momjian
a805635d21 Cleanups for 6.2.1. 1997-10-16 04:14:30 +00:00
Vadim B. Mikheev
78351f422b Fix for backward cursors with ORDER BY. 1997-10-15 06:36:36 +00:00
Thomas G. Lockhart
b0df88745d Include SQL/92 string continuation across newlines.
Allows the following example:
  select 'first string'
  '---'
  'last string';
 to be output as 'first string---last string'.
1997-10-15 01:12:21 +00:00
Thomas G. Lockhart
ba2358896a Fix final function for cash avg() aggregate.
Wrong function referenced in previous versions.
1997-10-15 01:08:25 +00:00
Vadim B. Mikheev
14f81d8d34 Decrement relation reference count incremented in
RelationIdCacheGetRelation() to flush relations from cache
in commit time.
1997-10-12 07:12:03 +00:00
Vadim B. Mikheev
defb10a450 DEFAULT is handled by analyze.c now. 1997-10-12 07:09:20 +00:00
Thomas G. Lockhart
c927f80fe4 Use P_TYPE rather than TYPE_P (which will be the name in the next release). 1997-10-09 05:43:59 +00:00
Thomas G. Lockhart
0f66d799a3 Allow both TIME and TYPE as column and table names. 1997-10-09 05:35:30 +00:00
Thomas G. Lockhart
070d494464 Clean up function declarations for the boolean type package
to use bool as the type for arguments and return values.
1997-10-09 05:07:25 +00:00
Thomas G. Lockhart
a21c3e353a Allow 't', 'T', and even/odd ASCII characters to denote true/false
rather than just 't' and 'T'.  This allows yes/no and 1/0
 to be interpreted as one might expect.
Clean up function declarations to use bool as the type for arguments
 and return values.
1997-10-09 05:06:12 +00:00
Thomas G. Lockhart
8fe55efd7b Support special values 'now', 'current', etc on output. 1997-10-09 05:02:17 +00:00
Thomas G. Lockhart
f54cc390e1 Allow TIME in column and table names (SQL/92 non-reserved word). 1997-10-09 05:00:54 +00:00
Thomas G. Lockhart
8bd813d6be Fix error in ordering of arguments. 1997-10-09 04:59:37 +00:00
Bruce Momjian
577b0584aa Update to version 0.51. 1997-10-03 23:11:26 +00:00
Marc G. Fournier
f1bfc520c0 We never do remember to up the PG_VERSION number, do we? :( 1997-10-03 17:31:29 +00:00
Bruce Momjian
4aab22fcda Update to 0.5. 1997-10-03 15:47:17 +00:00
Bruce Momjian
83cd375cd2 Linux/alpha patch from Dan Maynard 1997-10-03 15:27:18 +00:00
Thomas G. Lockhart
8b028b5c2d From JM de Lauwereyns (jmlauwer@icdc.caissedesdepots.fr):
lconv is already taken as a struct identifier defined in a /usr/include file.
Only has an effect with USE_LOCALE enabled.
(Apparently unique to AIX and/or AIX compiler? thomas)
1997-10-03 13:10:06 +00:00
Bruce Momjian
d663f1c839 Sparc lock fix for Linux/netbsd. 1997-10-02 18:32:58 +00:00
Vadim B. Mikheev
953e9e2b3c + MOVE
+ CREATE TRIGGER
Little changes for create table.
1997-10-02 13:58:06 +00:00
Vadim B. Mikheev
abb0e707da Dump DEFAULT, CHECK, Triggers.
Fix BASETYPE for aggregates with sfunc2 only.
1997-10-02 13:57:07 +00:00
Vadim B. Mikheev
1b677e7e34 Fix \ handling 1997-10-02 13:52:29 +00:00
Vadim B. Mikheev
0c8ef6e5cb MOVE command 1997-10-02 03:15:11 +00:00
Vadim B. Mikheev
61a72beda5 A word about constraint nature of DEFAULT. 1997-10-02 02:50:22 +00:00
Marc G. Fournier
bf125ca401 Bring in a "registration" file to be printed out after the user has
performed a 'make install'

Uses 'more', which should be standard across all systems, I hope?
1997-10-02 00:59:35 +00:00
Bruce Momjian
f477db7705 Update manuals for 6.2 release. 1997-10-01 19:42:53 +00:00
Bruce Momjian
7566949a97 Update manuals for 6.2 release. 1997-10-01 19:30:59 +00:00
Bruce Momjian
a127aafca7 Update manuals for 6.2 release. 1997-10-01 19:24:21 +00:00
Bruce Momjian
c03c6857b7 Update manuals for 6.2 release. 1997-10-01 19:14:35 +00:00
Bruce Momjian
c83beeff06 Update manuals for 6.2 release. 1997-10-01 19:08:48 +00:00
Bruce Momjian
140f728658 Update manuals for 6.2 release. 1997-10-01 18:57:48 +00:00
Bruce Momjian
59509a0711 Update manuals for 6.2 release. 1997-10-01 18:53:28 +00:00
Bruce Momjian
627730fa47 Update PQntuples now returns rows affected. 1997-10-01 18:14:53 +00:00
Thomas G. Lockhart
7cd15c47d8 Document NOT NULL for table creation.
Clarify usage of date_part() for timespan data type.
1997-10-01 17:05:16 +00:00
Bruce Momjian
dec1889a73 Update to 0.4. 1997-10-01 15:38:59 +00:00
Bruce Momjian
4a226f0a7e Update to 0.4 version. 1997-10-01 15:13:14 +00:00
Bruce Momjian
1d3290e7ff Fix permits. 1997-09-30 18:40:37 +00:00
Bruce Momjian
cb9604f2ac Add support for NetBSD/sparc. 1997-09-30 16:21:42 +00:00
Bruce Momjian
a4cffdcf82 HPUX 10 fix. 1997-09-30 15:19:32 +00:00
Vadim B. Mikheev
a788027724 Little changes. 1997-09-30 09:50:28 +00:00
Vadim B. Mikheev
7a5d3fbd9b STATEMENT triggers are not implemented - elog (WARN). 1997-09-30 09:49:54 +00:00
Bruce Momjian
da707e4224 Cleanup. 1997-09-30 03:28:02 +00:00
Bruce Momjian
6238d836a1 Update readme. 1997-09-30 02:47:27 +00:00
Bruce Momjian
f19ccf932e Update pgtcl to 0.3. Update README. 1997-09-30 00:22:43 +00:00
Marc G. Fournier
8e4169c786 Update to the newest version before beta12, and add a README file
from Constantin...
1997-09-29 21:06:48 +00:00
Marc G. Fournier
65818b6bf0 From: Peter T Mount <patches@maidast.demon.co.uk>
This patch fixes a few results in DatabaseMetaData, and updates the README
and TODO files (the later being a new file).

The TODO file lists the things that need to be looked into after 6.2 is
released, and describes the problem with Large Objects.
1997-09-29 20:11:51 +00:00
Marc G. Fournier
46032338cd Bring in Constantin's PGaccess TCL interface (v0.21) 1997-09-29 20:06:06 +00:00
Vadim B. Mikheev
3f6381d7e7 Fix error indicator for SPI_getvalue() and SPI_getbinval() 1997-09-29 06:28:45 +00:00
Vadim B. Mikheev
51689ece82 MOVE implementation (added bool ismove to FetchStmt). 1997-09-29 06:01:46 +00:00
Vadim B. Mikheev
5a447b4a26 MOVE implementation. 1997-09-29 05:59:16 +00:00
Bruce Momjian
4b9fb26648 HPUX patches from Vladimir Turin. 1997-09-29 03:27:18 +00:00
Bruce Momjian
a638f6625b Cleanup tmp files for ccsym. 1997-09-28 16:57:44 +00:00
Marc G. Fournier
1337751e50 From: Darren King <darrenk@insightdist.com>
I asked for this a long time ago and Frank Dana recently has
indicated that using lbsd on aix breaks the timezone code.
1997-09-28 10:10:36 +00:00
Marc G. Fournier
fb269b4675 From: CNT systemen BV <cntsys@cistron.nl>
I've found a problem in the Postgresql jdbc driver.
"ReceiveInteger" shifts a received byte right instead of left.
This means that only the least significant byte is read into the int.

Reviewed by: Peter T Mount <patches@maidast.demon.co.uk>
1997-09-28 10:05:15 +00:00
Bruce Momjian
9cd2680f93 ccsym cleanup. 1997-09-28 04:23:04 +00:00
Bruce Momjian
a28c50ad3b Changed location of libpgtcl stuff. 1997-09-27 19:35:04 +00:00
Bruce Momjian
cae19f61e3 Changed location of libpgtcl stuff. 1997-09-27 19:28:40 +00:00
Bruce Momjian
fc50064d85 Changed location of libpgtcl stuff. 1997-09-27 19:13:56 +00:00
Bruce Momjian
16440d79bb Cleanup for find_keywords. 1997-09-27 17:25:48 +00:00
Bruce Momjian
87251d17f8 Cleanup for find_keywords. 1997-09-27 17:22:05 +00:00
Bruce Momjian
65b1ed4712 Add fiel to list keywords. 1997-09-27 16:42:21 +00:00
Bruce Momjian
725a03eb4b Make GetAttributeByNum visible again for external use. 1997-09-27 14:37:21 +00:00
Thomas G. Lockhart
384d4f6eba Update catalog lists for v6.2.
Add documentation of some text functions.
Add descriptions of some new SQL/92-compatible string functions.
1997-09-27 04:37:33 +00:00
Thomas G. Lockhart
c19bd8c764 Use "man drop" as an introduction to all drop commands.
Create explicit drop_table man page (copied from old drop man page).
1997-09-27 04:36:02 +00:00
Bruce Momjian
fcc0320b69 Manual page cleanup. 1997-09-27 03:58:29 +00:00
Bruce Momjian
2ab3d65900 Update manual pages. 1997-09-27 03:14:20 +00:00
Marc G. Fournier
802fc5f770 This gets things to compile...past this I'll have to test from home, or
someone will have to tell me
1997-09-27 00:05:23 +00:00
Marc G. Fournier
1fdd834672 Nothing in this file right now, but will contain appropriate 'chmod's
so that permissions are set for the end release...
1997-09-26 22:06:30 +00:00
Bruce Momjian
c30b8f9dbd AIX float fix. 1997-09-26 20:32:02 +00:00
Bruce Momjian
5e2c0a87c9 Fix for psort temp file names, from Vadim. 1997-09-26 20:05:47 +00:00
Thomas G. Lockhart
544992c3d7 Include information on new DEFAULT and CONSTRAINT clauses. 1997-09-26 15:21:27 +00:00
Thomas G. Lockhart
09cfab3a7f Include references to other "drop" man pages. 1997-09-26 15:20:12 +00:00
Thomas G. Lockhart
5acd45f6fd Initial docs for Vadim's new trigger capabilities. 1997-09-26 15:13:09 +00:00
Thomas G. Lockhart
b105324f7e Fix SUBSTRING(str FROM int TO int) parsing. 1997-09-26 15:09:11 +00:00
Vadim B. Mikheev
142d42f938 Scripts to run queries and data. 1997-09-26 14:57:36 +00:00
Vadim B. Mikheev
dbde5caeed Some results. 1997-09-26 14:55:44 +00:00
Vadim B. Mikheev
cf76759f34 Start with performance suite. 1997-09-26 14:55:21 +00:00
Vadim B. Mikheev
561b35e556 Return error if char *query is null in SPI_prepare() 1997-09-26 13:57:39 +00:00
Marc G. Fournier
99048aca00 Get these two files finally committed for Peter...sorry for delay :( 1997-09-26 08:22:21 +00:00
Edmund Mergl
c5d49902fb *** empty log message *** 1997-09-25 21:15:04 +00:00
Bruce Momjian
4a98c5763e Back out inclusion of postgres.h. 1997-09-25 16:52:23 +00:00
Bruce Momjian
2f4275327e Massive examples fix from Nicola Bernardelli 1997-09-25 16:35:52 +00:00
Bruce Momjian
0384d37083 Fix for libpgtcl from Constantin Teodorescu. 1997-09-25 15:48:51 +00:00
Thomas G. Lockhart
5004b99e92 Tatsuo's patch to fix alignment problems in structure for RISC machines. 1997-09-25 14:11:42 +00:00
Thomas G. Lockhart
e008c68408 One more change to recover v6.1.1 escaped-text input behavior.
Should be changed for v6.3!
1997-09-25 14:10:23 +00:00
Thomas G. Lockhart
4293adc117 Disable checking for zero or one points with deeper parens on input.
Polygon input would not accept single-point polygon output and dump.
1997-09-25 14:09:04 +00:00
Vadim B. Mikheev
6be30fb524 Fix handling of functions with non-attribute first argument in WHERE
clauses.
1997-09-25 12:48:15 +00:00
Vadim B. Mikheev
c42f7f1460 Fix GROUP BY when order of entries is different from order in target list. 1997-09-25 12:21:15 +00:00
Vadim B. Mikheev
bb0cc20e64 Fix handling of SPI_tuptable. 1997-09-25 12:16:05 +00:00
Bruce Momjian
be5241420a S_LOCK_FREE fix. 1997-09-25 01:48:58 +00:00
Bruce Momjian
ebb3008dbd Fix for S_FREE_LOCK. 1997-09-24 23:37:26 +00:00
Thomas G. Lockhart
d77a506307 Use additional ORDER BY to cope with new sorting routines. 1997-09-24 17:55:38 +00:00
Thomas G. Lockhart
16d65f5c25 Add SQL/92 "constants" current_date, current_time, and current_timestamp.
Add SQL/92 types decimal and numeric (temporary for syntax support).
 These types need more support in the backend to be really implemented,
 and the parser will need to be changed at that time.
Adjust limits on precision parameters for FLOAT(p) to match IEEE-compliant
 arithmetic. Perhaps these limits should be processor-specific or obtained
 from system include files instead.
1997-09-24 17:53:53 +00:00
Thomas G. Lockhart
ba8763c500 Add SQL/92 types decimal and numeric.
Add SQL/92 "constants" current_date, current_time, and current_timestamp.
1997-09-24 17:49:56 +00:00
Thomas G. Lockhart
53ad0aa262 Restore proper behavior for escaped quotes and for escaped literals
like newline inside quoted strings.
1997-09-24 17:48:25 +00:00
Thomas G. Lockhart
c7dbd366ba Remove debugging "puts" print statement. 1997-09-24 17:46:14 +00:00
Thomas G. Lockhart
0e699286d3 Coerce type of NULL pointer return to suppress gcc compiler warnings. 1997-09-24 17:45:21 +00:00
Bruce Momjian
e00f0ea39e Fix for pg_dump. 1997-09-24 16:20:04 +00:00
Bruce Momjian
9eaaf36f04 Update configure. 1997-09-24 15:57:28 +00:00
Bruce Momjian
28c2edcb3d Remove aix power pc. 1997-09-24 15:49:46 +00:00
Bruce Momjian
55780ae0e8 Remove extra float.h I added. 1997-09-24 15:40:59 +00:00
Bruce Momjian
837f0cbea0 CREATE FUNCTION fixup for types of functions. 1997-09-24 15:36:36 +00:00
Bruce Momjian
77d514a550 Rollback changes to pg_dump.c 1997-09-24 15:14:02 +00:00
Vadim B. Mikheev
c13454edc2 Timetravel tests. 1997-09-24 08:36:47 +00:00
Vadim B. Mikheev
76271543ae Added: ttdummy() - variation of timetravel() function
for regress test.
1997-09-24 08:35:10 +00:00
Vadim B. Mikheev
1777ba4c80 + SPI_palloc(), SPI_repalloc(), SPI_pfree() 1997-09-24 08:32:09 +00:00
Vadim B. Mikheev
f79b7a56b4 Allow use functions with no arguments in DEFAULT
Allow use IDENT as arguments of trigger functions
1997-09-24 08:31:04 +00:00
Vadim B. Mikheev
eec6108650 + SPI_palloc(), SPI_repalloc(), SPI_pfree() - for allocations
in upper Executor memory context.
1997-09-24 08:28:37 +00:00
Bruce Momjian
f0b9b2152e HPUX 10 patch. 1997-09-24 04:20:29 +00:00
Bruce Momjian
11b4a9689d Add -S to top of manual page. 1997-09-24 03:20:54 +00:00
Bruce Momjian
88325bd010 AIX fixes. 1997-09-23 22:53:47 +00:00
Bruce Momjian
a572fc229b Fix for CREATE FUNCTION. 1997-09-23 21:44:07 +00:00
Bruce Momjian
cad3e709fe Fix for backslash quote. 1997-09-23 19:47:59 +00:00
Bruce Momjian
38d2ca5418 AIx patch from Frank Dana. 1997-09-23 17:43:33 +00:00
Bruce Momjian
bcdd0a93ed Cleanup. 1997-09-23 00:02:44 +00:00
Bruce Momjian
09dfed4022 Cleanup backslashes. 1997-09-22 18:14:25 +00:00
Bruce Momjian
a2a0842d1c Fix for missing tas on some platforms. 1997-09-22 15:59:19 +00:00
Bruce Momjian
85f7555132 Small lock cleanup for prototype. 1997-09-22 15:49:14 +00:00
Vadim B. Mikheev
5fb82eb4c7 Blowaway relation buffers from buffer pool before truncation:
+ BlowawayRelationBuffers(relation, blocknumber)
1997-09-22 07:13:56 +00:00
Vadim B. Mikheev
708f67c7a9 Blowaway relation buffers from buffer pool before truncation. 1997-09-22 07:12:33 +00:00
Vadim B. Mikheev
94e52d38df Two copies... 1997-09-22 04:21:51 +00:00
Vadim B. Mikheev
90d490059d Have to PROC_INCR_SLOCK before return. 1997-09-22 04:20:53 +00:00
Vadim B. Mikheev
e7046924a5 Fix: Operand Order Affects OR.
where x <> 1 or x isnull
didn't return tuples with x NULL.
1997-09-22 04:19:36 +00:00
Vadim B. Mikheev
c2c26b6ff0 +#include <access/xact.h> 1997-09-22 03:58:32 +00:00