Commit Graph

2366 Commits

Author SHA1 Message Date
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
Bruce Momjian 2a8bea900a Configure OS cleanup. 1997-09-21 22:54:19 +00:00
Bruce Momjian 08566431c4 Make manual page for pg_passwd from README. 1997-09-21 04:54:36 +00:00
Thomas G. Lockhart 1556e62573 Output changed for new ORDER BY to cope with new sorting routines. 1997-09-20 16:37:02 +00:00
Thomas G. Lockhart 7971fb0d79 Output changed to reflect extra entries from new regression tests. 1997-09-20 16:35:34 +00:00
Thomas G. Lockhart 8bb569105a Change ORDER BY to get consistant results with new sorting routines. 1997-09-20 16:34:08 +00:00
Thomas G. Lockhart d8ec518000 Update results count to reflect bad entries now being rejected by new decoder. 1997-09-20 16:33:24 +00:00
Thomas G. Lockhart 68cd097e89 Change ORDER BY to get more consistant results. 1997-09-20 16:31:44 +00:00
Thomas G. Lockhart 354a18fcb2 Add tinterval comparison operators.
Add integer/money arithmetic.
1997-09-20 16:29:38 +00:00
Thomas G. Lockhart aae2420e8b Add point_ne() comparison routine. 1997-09-20 16:25:28 +00:00
Thomas G. Lockhart d0ab9c3f81 Add tinterval comparison routines. 1997-09-20 16:24:39 +00:00
Thomas G. Lockhart 2b83160dca Add integer/money arithmetic from Darren King. 1997-09-20 16:23:47 +00:00
Thomas G. Lockhart 75aef05530 Add point_ne() function.
Fix up tabbing of most function declarations.
1997-09-20 16:22:31 +00:00
Thomas G. Lockhart cc8dc825d8 Fix typo for default units for timespan input.
Place single-ticks around bad argument in elog messages.
Fix tabbing of large lookup tables (ugh).
1997-09-20 16:20:29 +00:00
Thomas G. Lockhart fbf12681ab Include tinterval comparison functions for span of interval. 1997-09-20 16:17:45 +00:00
Thomas G. Lockhart 5984746113 Include functions for integer/money arithmetic. 1997-09-20 16:15:34 +00:00
Thomas G. Lockhart eba607d8e5 Fix up elog warning messages. 1997-09-20 16:14:05 +00:00
Thomas G. Lockhart 3bb89a27ee Add support for FLOAT(p) SQL/92 data type.
Allow ALTER TABLE ADD ( column ) syntax.
1997-09-20 16:11:44 +00:00
Thomas G. Lockhart 007e4d9a07 Replace missing directory delimiter for postmaster installation command. 1997-09-20 16:08:24 +00:00
Marc G. Fournier fa67a247cf Bring in Peter's changes...finally :( 1997-09-20 02:21:25 +00:00
Bruce Momjian e9cd0f2e6b Update configure. 1997-09-19 22:02:26 +00:00
Marc G. Fournier ccca61b5fe 1997-06-15 Paul Eggert <eggert@twinsun.com>
* (src/backend/Makefile): Use `ln', not `cd;ln' so that installers
        can wrap ln.
1997-09-19 19:44:30 +00:00
Vadim B. Mikheev 6c84398411 + _copyGroup(Group *from) 1997-09-19 06:52:49 +00:00
Bruce Momjian 34ec62058a Fix \e and \p after query. 1997-09-19 03:42:39 +00:00
Bruce Momjian 3f365ba0fc Inline memset() as MemSet(). 1997-09-18 20:22:58 +00:00
Bruce Momjian c3072cb1f0 Have to do [[ ]] in configure.in. 1997-09-18 19:57:31 +00:00
Bruce Momjian 0f928c2d21 UPdate memset macro. 1997-09-18 18:48:32 +00:00
Bruce Momjian 79cb0fd9bb Cleanup for memset macro. 1997-09-18 17:06:21 +00:00
Marc G. Fournier 220941dac5 Add in srandom() check to configure
Add appropriate HAVE_{RANDOM,SRANDOM} values to config.h
Add approrpiate #ifdef's to sparc_solaris port files for Solaris v2.6
1997-09-18 16:09:41 +00:00
Vadim B. Mikheev 2a3e28282e QUERY: SELECT p.name, p.age FROM person* p ORDER BY age using >;
^^^^^^ - new order of tuples (due to psort changes)
1997-09-18 14:45:33 +00:00
Vadim B. Mikheev a6e0803a7f No more SortTuplesInTree... 1997-09-18 14:42:35 +00:00
Vadim B. Mikheev b0ccd78479 Don't limit number of tuples in leftist trees!
Use qsort to sort array of tuples for nextrun when current
run is done and put into leftist tree from sorted array!
It's much faster and creates non-bushy tree - this is ve-e-ery good
for perfomance!
1997-09-18 14:41:56 +00:00
Vadim B. Mikheev 8f1e1b4551 No more SortTuplesInTree... 1997-09-18 14:33:46 +00:00
Vadim B. Mikheev 4948a51d74 Convert sequence names tolower. 1997-09-18 14:32:15 +00:00
Vadim B. Mikheev 2de0da358d ALTER TABLE ADD COLUMN: set atthasdef to FALSE. 1997-09-18 14:31:38 +00:00
Bruce Momjian 8cb4154492 Inline frequently called functions. 1997-09-18 14:21:02 +00:00
Vadim B. Mikheev bbe2c10c14 Addded to Psortstate:
lt_tupcount - number of tuples in struct leftist *Tuples
	lasttuple   - last tuple put to disk by createfirstrun()
1997-09-18 05:42:01 +00:00
Vadim B. Mikheev 7ffd2c09c8 + SortTuplesInTree 1997-09-18 05:38:09 +00:00
Vadim B. Mikheev 712ea2507e 1. Use qsort for first run
2. Limit number of tuples in leftist trees:
	- put one tuple from current tree to disk if limit reached;
	- end run creation if limit reached by nextrun.
3. Avoid mergeruns() if first run is single one!
1997-09-18 05:37:31 +00:00
Vadim B. Mikheev 303f6514bd + int SortTuplesInTree = 2560;
(default value for max number of tuples in leftist tree)
1997-09-18 05:23:58 +00:00
Vadim B. Mikheev 10971a6f81 Allow set max number of tuples in leftist tree for sorts
(-S memory,tuples)
1997-09-18 05:19:17 +00:00
Thomas G. Lockhart 36b54847cb Add explicit test for various comment syntaxes. 1997-09-18 03:54:19 +00:00
Thomas G. Lockhart 1d9ad887cd Explicitly test various comment syntaxes. 1997-09-18 03:52:43 +00:00
Thomas G. Lockhart c407a38742 Add syntax and warnings for unsupported ALTER TABLE commands
including DROP COLUMN, SET CONSTRAINT, etc.
1997-09-18 03:46:18 +00:00
Marc G. Fournier 359cd689f8 Ack, I missed a template file here :( 1997-09-18 01:32:14 +00:00
Edmund Mergl 9d575627af *** empty log message *** 1997-09-17 20:53:35 +00:00
Edmund Mergl 5ec6055648 *** empty log message *** 1997-09-17 20:51:36 +00:00
Edmund Mergl 364efd1029 adapted to pgsql-v6.2 1997-09-17 20:48:15 +00:00
Edmund Mergl 9e74edda05 *** empty log message *** 1997-09-17 20:46:29 +00:00
Bruce Momjian b02086b303 Remove extra backets in tr test. 1997-09-17 20:14:16 +00:00
Bruce Momjian f05642bbcc Linux seems to have 3/4/5/686. 1997-09-16 18:51:49 +00:00
Bruce Momjian f3a58f2639 Makefile cleanup. 1997-09-16 18:47:36 +00:00
Bruce Momjian df7a435587 Mklinux patch from Tatsuo. 1997-09-16 16:25:28 +00:00
Thomas G. Lockhart 2b4be93787 Modify to match current expected output
after adding separate sections for DEFAULT and CHECK.
1997-09-16 16:17:19 +00:00
Thomas G. Lockhart b8967bfeec Add explicit, separate test sections for DEFAULT and CHECK.
Use conventions common to other regression test input files.
Leave non-temporary files at end of test.
1997-09-16 16:15:52 +00:00
Thomas G. Lockhart 829354d849 Remove extraneous blank lines from error messages. 1997-09-16 16:13:58 +00:00
Thomas G. Lockhart 31174f11d0 Remove difftime() calls.
Still uses time_t declarations, but most code will be changed for next release.
1997-09-16 16:12:55 +00:00
Thomas G. Lockhart 43163cf5d6 Fix string conversions for operators in DEFAULT and CHECK clauses. 1997-09-16 16:11:20 +00:00
Bruce Momjian 0829d2dba8 Remove uint32 from inet_aton file. 1997-09-16 16:09:59 +00:00
Bruce Momjian 604ce32e46 Add .eo to pgbuiltin. 1997-09-16 03:01:43 +00:00
Bruce Momjian 8c09eded1a Remove NO_MK_LORDER from Solaris. 1997-09-16 02:53:24 +00:00
Bruce Momjian 84ad06dd78 Manual cleanup for textcat. 1997-09-16 02:49:23 +00:00
Vadim B. Mikheev f3e9cf9c6b Fix pfree problem. 1997-09-15 14:29:01 +00:00
Vadim B. Mikheev feb78cda0c -S need in optarg... 1997-09-15 14:28:16 +00:00
Bruce Momjian 9b7f362d0a -Linux configure additoin, libtcl Makefile patch. 1997-09-14 23:34:16 +00:00
Bruce Momjian 90bcec36c1 To find uint32 on AIX. 1997-09-14 04:06:20 +00:00
Bruce Momjian 0a3cee72ac Add mention of heap_getattr() compiler warning. 1997-09-14 03:59:44 +00:00
Marc G. Fournier ba0b03de2e Let's hope this fixes the "bug" that was introduced 1997-09-13 16:27:13 +00:00
Bruce Momjian 48fd8b3e8f Cleanup of use of settings as pointer and structure, and ps. 1997-09-13 13:03:41 +00:00
Bruce Momjian 3a1cc07769 Cleanup for cash patch . 1997-09-13 12:05:32 +00:00
Bruce Momjian d88ff48045 Added pgindent/README file. 1997-09-13 11:55:12 +00:00
Bruce Momjian b3b0f20412 Cleanup from patch applied. 1997-09-13 11:45:50 +00:00
Bruce Momjian e0a4c7acaa configure cleanup. 1997-09-13 04:43:53 +00:00
Bruce Momjian 48d0db968f Fix for copy to stdout for cash. 1997-09-13 04:39:08 +00:00
Thomas G. Lockhart ebb000f805 Add results from Vadim's new tables. 1997-09-13 03:21:05 +00:00
Thomas G. Lockhart 05428ada1d Add tests for unary minus. 1997-09-13 03:20:18 +00:00
Thomas G. Lockhart e4b27f2acd Make tests match with modified error messages. 1997-09-13 03:19:43 +00:00
Thomas G. Lockhart aeecb4e505 Add a few tests for unary minus syntax. 1997-09-13 03:16:53 +00:00
Thomas G. Lockhart bc85dbf893 Remove backdoor strings from scan.l for DEFAULT and CHECK.
Reconstruct string input for DEFAULT and CHECK.
Add DOUBLE PRECISION, CHARACTER (VARYING) SQL-92 data types.
1997-09-13 03:15:46 +00:00
Thomas G. Lockhart 9ea74630fc Add a few keywords for SQL-92 support. 1997-09-13 03:13:37 +00:00
Thomas G. Lockhart 0fbfba11f6 Use exclusive state to help fix unary minus parsing.
Remove "backdoor" for DEFAULT and CHECK.
1997-09-13 03:12:55 +00:00
Thomas G. Lockhart c1d3c04d38 Fix up error messages. 1997-09-13 03:11:51 +00:00
Thomas G. Lockhart 2d2562e90d Fix up error messages to remove extra newline. Use "zero" rather than "0.0". 1997-09-13 03:10:11 +00:00
Bruce Momjian ff4722cf77 Solaris does not have lorder/tsort. 1997-09-13 02:27:06 +00:00
Bruce Momjian 26a1956f8c pg_version Makefile was not being processed. 1997-09-12 23:24:25 +00:00
Bruce Momjian aa0bad9638 Remove that 5 from MESSAGE SIZE that no one understands. 1997-09-12 22:26:13 +00:00
Bruce Momjian 1d0085e47a Dec alphaserver patch from Malcolm Beattie 1997-09-12 22:22:12 +00:00
Bruce Momjian fe54c54da3 Allow SELECT NULL as EMPTY_FIELD, Patrick. 1997-09-12 22:14:48 +00:00
Bruce Momjian 4213e44a0b Fix for select null, "fail" from pg_am from Patrick van Kleef 1997-09-12 22:07:59 +00:00
Bruce Momjian 2d7023c8fb No \\connect with usernames AND passwords. 1997-09-12 21:58:03 +00:00
Bruce Momjian cf5a8723dd Increase default geqo parameter to 8. 1997-09-12 21:25:10 +00:00
Bruce Momjian 7044dd7ec8 Fix heap_getattr bug I just added. 1997-09-12 14:29:04 +00:00
Vadim B. Mikheev 4379ce8380 Quick hack to get CHECK working for incoming betta. 1997-09-12 09:01:46 +00:00
Vadim B. Mikheev 4587547f13 Added: SPI_copytuple() & SPI_modifytuple() 1997-09-12 08:37:52 +00:00
Vadim B. Mikheev a40a546e47 RelationBuildRuleLock(): char* --> Datum for ruleaction and
rule_evqual_string.
1997-09-12 06:57:04 +00:00
Bruce Momjian b6bd3da520 Macro cleanup of heap_getattr. 1997-09-12 05:58:18 +00:00
Vadim B. Mikheev fd3ad7d765 Allow to call utility funcs without SPI_connect. 1997-09-12 05:11:14 +00:00
Vadim B. Mikheev 7f97e05b09 char* --> Datum 1997-09-12 04:58:59 +00:00
Bruce Momjian 1ea01720d5 heapattr functions now return a Datum, not char *. 1997-09-12 04:09:08 +00:00
Vadim B. Mikheev 6e04b4b20f Use strcasecmp in SPI_fnumber(TupleDesc tupdesc, char *fname). 1997-09-12 02:42:40 +00:00
Bruce Momjian c853ca05a4 Update pgpatch for GNU. 1997-09-11 21:29:11 +00:00
Bruce Momjian c8bc4a4e63 Add new pgindent directory and diff file. 1997-09-11 17:22:35 +00:00
Vadim B. Mikheev ba247bd649 Tests for spi/triggers 1997-09-11 09:14:12 +00:00
Vadim B. Mikheev a74613f478 Cleanups. 1997-09-11 07:24:37 +00:00
Bruce Momjian 8ec7eef93d Cleanup for array fix patch. 1997-09-10 23:57:49 +00:00
Bruce Momjian efd3b39029 Fix for arrays. 1997-09-10 23:30:45 +00:00
Bruce Momjian b1f3f446af Cleanup. 1997-09-10 20:19:23 +00:00
Bruce Momjian 59f6a57e59 Used modified version of indent that understands over 100 typedefs. 1997-09-08 21:56:23 +00:00
Bruce Momjian 075cede748 Add typdefs to pgindent run. 1997-09-08 20:59:27 +00:00
Bruce Momjian 4f523a6f92 Manual page updates. 1997-09-08 17:49:43 +00:00
Bruce Momjian 108baf70e5 Developer reorganization. 1997-09-08 04:19:50 +00:00
Bruce Momjian 125079e6d7 Reorganize developers files. 1997-09-08 04:14:01 +00:00
Bruce Momjian 23db70bf73 Lex/yacc source cleanup like indent. 1997-09-08 03:20:18 +00:00
Bruce Momjian 319dbfa736 Another PGINDENT run that changes variable indenting and case label indenting. Also static variable indenting. 1997-09-08 02:41:22 +00:00
Bruce Momjian a90f12fd9d Modifications for indenting. 1997-09-08 01:53:56 +00:00
Bruce Momjian 1ccd423235 Massive commit to run PGINDENT on all *.c and *.h files. 1997-09-07 05:04:48 +00:00
Bruce Momjian 8fecd4febf Cleanup. 1997-09-07 04:20:30 +00:00
Bruce Momjian 31afe7c069 Cleanup. 1997-09-07 04:17:39 +00:00
Bruce Momjian c51d81376f Cleanup. 1997-09-07 04:03:55 +00:00
Bruce Momjian b3652d2cca cleanup. 1997-09-07 03:26:12 +00:00
Bruce Momjian 70b990fa58 Cleanup for indent. 1997-09-06 19:51:44 +00:00
Bruce Momjian b72e62374d More cleanups for indent. 1997-09-06 18:27:11 +00:00
Vadim B. Mikheev bf1d9aeb97 Cleanups. 1997-09-06 11:23:05 +00:00
Bruce Momjian 5d68d3e957 New entab version. 1997-09-06 03:14:38 +00:00
Bruce Momjian b71fba22e3 New entab version. 1997-09-06 02:46:43 +00:00
Bruce Momjian 723f66076e Update entab version. 1997-09-06 01:46:25 +00:00
Bruce Momjian 2718f3097f Fix for entab. 1997-09-06 01:37:01 +00:00
Bruce Momjian 268b8be814 Cleanup needed for indent. 1997-09-06 00:22:44 +00:00
Bruce Momjian ec05063be0 Cleanups needed for indent. 1997-09-05 20:20:56 +00:00
Bruce Momjian 240a018176 Cleanups needed for indent. 1997-09-05 19:59:11 +00:00
Bruce Momjian 40e5588115 Cleanups needed for indent. 1997-09-05 19:38:42 +00:00
Bruce Momjian ae50c8d84b Cleanups needed for indent. 1997-09-05 19:32:44 +00:00
Bruce Momjian a1635450b3 Cleanups needed for indent. Remove }; 1997-09-05 18:13:45 +00:00
Bruce Momjian fe97d58051 cleanup. 1997-09-05 17:04:22 +00:00
Vadim B. Mikheev c753a6a1e2 Restore CurScanPosition() for flex.
Fix it for lex.
1997-09-05 09:05:48 +00:00
Bruce Momjian ce5ea7f381 Cleanup. 1997-09-05 04:29:56 +00:00
Bruce Momjian dfc2d35943 Better error reporting. 1997-09-05 04:18:36 +00:00
Bruce Momjian 868d708188 Add // comments. 1997-09-05 00:09:47 +00:00
Bruce Momjian b45311e016 More tab cleanup. 1997-09-04 18:50:28 +00:00
Thomas G. Lockhart b647a27cf5 Add comparision routines to support indices on datetime and timespan. 1997-09-04 18:44:29 +00:00
Thomas G. Lockhart 7c243f83e8 Add comparision routines and catalog entries to support indices on
datetime and timespan.
1997-09-04 18:43:59 +00:00
Bruce Momjian bb77313a0a Tabs in comments fix. 1997-09-04 18:34:59 +00:00
Bruce Momjian 18bb25bdf1 Fix for dashes in comments. 1997-09-04 16:36:32 +00:00
Bruce Momjian 9fcd4c25bc Fix conditional casting. 1997-09-04 16:20:55 +00:00
Bruce Momjian 33b028b5b0 Fix syntax error in psql help. 1997-09-04 15:02:56 +00:00
Vadim B. Mikheev 444369e7b2 struct Trigger changed 1997-09-04 13:26:45 +00:00
Vadim B. Mikheev 9ba606cd24 Prototypes, definitions... 1997-09-04 13:26:19 +00:00
Vadim B. Mikheev 989ab6b1e7 pg_trigger changed 1997-09-04 13:25:14 +00:00
Vadim B. Mikheev bad4bc40b9 CREATE/DROP TRIGGER syntax 1997-09-04 13:24:26 +00:00
Vadim B. Mikheev 0badb77e73 Fixed _copyRangeTblEntry 1997-09-04 13:24:01 +00:00
Vadim B. Mikheev 78d74e32fb execMain.c: little changes in trigger interface...
spi.c: functions to prepare/run and preserve plans for
       duration of transaction/session. Some data utilities.
1997-09-04 13:22:39 +00:00
Vadim B. Mikheev dc13d5d307 Before row insertion triggers call. 1997-09-04 13:19:01 +00:00
Vadim B. Mikheev 8d6e5f07ff heap_destroy:RelationRemoveTriggers() 1997-09-04 13:17:59 +00:00
Bruce Momjian 35378a4efc Fix syntax error. 1997-09-03 16:48:59 +00:00
Thomas G. Lockhart ec70b3c07c Remove comment line in rules section. Keith reports trouble on Solaris
and O'Reilly "lex & yacc" book claims ATT-lex has trouble with comments.
1997-09-02 02:32:35 +00:00
Vadim B. Mikheev 6084c915d0 Triggers added to Relation 1997-09-01 08:13:22 +00:00
Vadim B. Mikheev b69b815e3a + Member for actions in CreateTrigStmt. 1997-09-01 08:11:57 +00:00
Vadim B. Mikheev 2ca45d5729 Function prototypes. 1997-09-01 08:10:12 +00:00
Vadim B. Mikheev 38f0ffd36c #define TriggerRelationName "pg_trigger" 1997-09-01 08:09:09 +00:00
Vadim B. Mikheev b9188c3065 trigger_dynamic()->handle_load() func for loading SPI-triggers 1997-09-01 08:06:17 +00:00
Vadim B. Mikheev c67208b3bb Calls of RelationBuildTriggers() & FreeTriggerDesc() 1997-09-01 08:04:38 +00:00
Vadim B. Mikheev 283e18ab0e BEFORE/AFTER ROW INSERT/DELETE/UPDATE triggers startup. 1997-09-01 08:01:46 +00:00
Vadim B. Mikheev 8c798538b8 BEFORE/AFTER ROW INSERT triggers startup from CopyFrom()
RelationBuildTriggers() & FreeTriggerDesc() in trigger.c
1997-09-01 07:59:06 +00:00
Thomas G. Lockhart c2efeafe9c Update information and query results for upcoming v6.2 release. 1997-09-01 06:21:00 +00:00
Thomas G. Lockhart bebfe968e3 Test new intersection and closest point operators.
Fix up results labels on queries.
Update existing queries which now return good results.
1997-09-01 06:19:43 +00:00
Thomas G. Lockhart 2d0e6b0ff7 Test new intersection and closest point operators.
Fix up results labels on queries.
1997-09-01 06:18:45 +00:00
Thomas G. Lockhart f2a9e203e8 Test for "current" time by comparing against "now". 1997-09-01 06:16:08 +00:00
Thomas G. Lockhart 98462b73f8 Shift time zone to GMT to correctly evaluate "current" time. 1997-09-01 06:13:21 +00:00
Thomas G. Lockhart b776831e8b Rearrange scanning code to support extended comments.
Use #define symbols rather than integers for scanning states.
1997-09-01 06:09:53 +00:00
Thomas G. Lockhart 1bf90bc7d3 Add structure for subselects.
Add field to support "WITH TIME ZONE".
1997-09-01 06:04:59 +00:00
Thomas G. Lockhart 570620c569 Add SQL92 string handling features (SUBSTRING, TRIM, EXTRACT).
Add parsing for UNION and outer JOINs.
Implement SQL92 "WITH TIME ZONE".
Allow some reserved words as identifiers and column labels.
Clean up indentation and "orphan spaces and tabs".
1997-09-01 06:00:35 +00:00
Thomas G. Lockhart 05cdb99bfb Add detection and warnings for UNION and HAVING clauses.
Generate non-fatal warning only and proceed by ignoring clauses.
1997-09-01 05:56:34 +00:00
Thomas G. Lockhart 05eb632864 Add more reserved words, mostly for SQL92 compliance.
Include reserved words for string handling, outer joins, and unions.
1997-09-01 05:53:31 +00:00
Thomas G. Lockhart 559a28747a Use exclusive states for parsing quoted strings.
Implement extended comments ("/* ... */") using exclusive states.
Modify definitions of operators to remove some restrictions on characters
 and character order.
1997-09-01 05:51:52 +00:00
Thomas G. Lockhart 1370a08746 Fix return value data type declarations for box_circle() and poly_circle(). 1997-09-01 05:46:09 +00:00
Vadim B. Mikheev 8dd090f6da CREATE/DROP TRIGGER statement nodes 1997-08-31 11:43:09 +00:00
Vadim B. Mikheev bcf03a7ed6 CREATE/DROP TRIGGER functions 1997-08-31 11:42:21 +00:00
Vadim B. Mikheev 502f6f3889 CREATE/DROP TRIGGER 1997-08-31 11:41:55 +00:00
Vadim B. Mikheev d65584d297 Get rid of #include "../backend/parser/parse.h 1997-08-31 11:41:20 +00:00
Vadim B. Mikheev 4e9a3f4ef0 Workplace for CREATE/DROP TRIGGER 1997-08-31 11:40:13 +00:00
Vadim B. Mikheev f2cc46dd54 Indexing of pg_trigger 1997-08-31 09:56:18 +00:00
Vadim B. Mikheev 2d7b93c0ca Welcome, triggers 1997-08-31 09:55:24 +00:00
Marc G. Fournier 6a061da272 Update patch from Peter <patches@maidast.demon.co.uk> 1997-08-31 08:15:13 +00:00
Vadim B. Mikheev 0b6dc93b32 Add spi.o 1997-08-30 10:28:47 +00:00
Bruce Momjian 65191fabfd indent flag change. 1997-08-29 21:41:33 +00:00
Bruce Momjian 0aea0f2063 Cleanup. 1997-08-29 21:20:09 +00:00
Bruce Momjian fddc57bfcd Add PGINDENT and support program. 1997-08-29 21:13:00 +00:00
Vadim B. Mikheev 448332a769 TupleUpdatedByCurXactAndCmd () changed due to
Fix very old bug which made tuples changed/inserted by a commnd
visible to command itself (so we had multiple update of updated tuples,
etc).
1997-08-29 09:12:20 +00:00
Vadim B. Mikheev d8933d5cff New results destination for SPI manager. 1997-08-29 09:06:27 +00:00
Vadim B. Mikheev 0d0254d1fb SPI manager. 1997-08-29 09:05:57 +00:00
Vadim B. Mikheev 3152996ffb Fix very old bug which made tuples changed/inserted by a commnd
visible to command itself (so we had multiple update of updated tuples,
etc).
1997-08-29 09:05:25 +00:00
Bruce Momjian e06099c607 heap_getattr fix for aix. 1997-08-29 00:44:55 +00:00
Vadim B. Mikheev 8fd0898814 Fix time_cmp 1997-08-28 05:06:29 +00:00
Vadim B. Mikheev ed118276e3 Clean CommandInfo after posting to client. 1997-08-28 05:05:43 +00:00
Vadim B. Mikheev becd2f9b82 Fix for "default = '...'" in CREATE TYPE 1997-08-28 05:02:01 +00:00
Vadim B. Mikheev 174bc0c1e7 Tests for CHECK/DEFAULT 1997-08-28 04:49:34 +00:00
Vadim B. Mikheev 3751b49545 Number of tuples inserted/affected by INSERT/UPDATE/DELETE... 1997-08-27 09:05:24 +00:00
Vadim B. Mikheev 40ac5a692b heap_delete returns int now (for non-functional deletes). 1997-08-27 09:03:47 +00:00
Marc G. Fournier ceac1d5a4e Only need to check for strerror once :) 1997-08-27 05:06:20 +00:00
Bruce Momjian ed7a17dca0 Remove unneeded stat calls. 1997-08-27 03:48:50 +00:00
Bruce Momjian 75c6c2b608 Inlined heap_getattr(). 1997-08-26 23:31:58 +00:00
Bruce Momjian 20afa04d03 Fix for pointer arithmetic. 1997-08-26 19:24:36 +00:00
Bruce Momjian 6451b04a08 rename sections. 1997-08-26 17:39:32 +00:00
Bruce Momjian ed626314e6 unix.1 renamed to pgintro.1. 1997-08-26 17:30:09 +00:00
Bruce Momjian 99e9deac73 Manual page renaming. 1997-08-26 17:00:23 +00:00
Bruce Momjian 5927d47b4f Change void * to Dllist*. 1997-08-26 14:05:47 +00:00
Bruce Momjian 0bdd6d1e00 pg_passwd cleanup. 1997-08-25 23:28:04 +00:00
Bruce Momjian 86062218da pg_passwd cleanup. 1997-08-25 23:11:21 +00:00
Bruce Momjian c6e7baa7e1 pg_passwd cleanup 1997-08-25 20:00:03 +00:00
Bruce Momjian f8fda03d12 pg_password utility. Cleanup for psql passwords. New datetime contrib stuff for new version. Fix for strutils needing config.h. 1997-08-25 19:41:52 +00:00
Bruce Momjian 8d0e658d06 Small cleanup. 1997-08-25 04:15:40 +00:00
Bruce Momjian c4cb617504 Major patch to speed up backend startup after profiling analysis. 1997-08-24 23:08:01 +00:00
Bruce Momjian 281ba3f40d Update .similar version file. 1997-08-22 18:48:25 +00:00
Bruce Momjian e045278e7e Fix for no NULL in CREATE TABLE. 1997-08-22 17:15:41 +00:00
Bruce Momjian 50881e336b Remove compile warning. 1997-08-22 16:48:14 +00:00
Bruce Momjian 0a50d30bd7 Warning in makefile added from DArcy. 1997-08-22 16:38:33 +00:00
Vadim B. Mikheev c16d29f990 + ExecConstraints () 1997-08-22 14:39:33 +00:00
Vadim B. Mikheev c0784f6d96 Restore CONSTRAINT keyword (was lost ... by unknown way) 1997-08-22 14:33:21 +00:00
Vadim B. Mikheev d40885cc40 + ExecConstraints() 1997-08-22 14:28:20 +00:00
Vadim B. Mikheev faebf2f8a2 Turn constraints off for sequences & views
elog(WARN,"ADD ATTRIBUTE: DEFAULT is not implemented, yet");
Call ExecConstraints in CopyFrom
1997-08-22 14:22:14 +00:00
Vadim B. Mikheev 530876fea5 Remove DEFAULT/CHECK infos from catalog on DROP TABLE
Store CHECK infos on CREATE TABLE
1997-08-22 14:10:26 +00:00
Bruce Momjian 021778eed3 We store Cash/money as int of size 4, so make it an int rather than a long. 1997-08-22 07:13:01 +00:00
Bruce Momjian 7515bb484e Fix for psql pager when no tty, cleanup for vacuum attdisbursion type. 1997-08-22 04:13:18 +00:00
Vadim B. Mikheev 5f7f236ba4 ConstraintDef changed 1997-08-22 04:05:27 +00:00
Vadim B. Mikheev d67547d82d Set attbyval for attdisbursion to FALSE
Set atttype for relchecks to 21 (int2)
Set relkind for pg_attrdef & pg_relcheck to 'n'
1997-08-22 04:04:19 +00:00
Vadim B. Mikheev ee5f09f07c + CreateTupleDescCopyConstr
+ FreeTupleDesc
1997-08-22 03:55:39 +00:00
Vadim B. Mikheev ac0029aa0b Fetch information about DEFAULT/CHECK while openning a relation. 1997-08-22 03:35:44 +00:00
Vadim B. Mikheev 9b6d8878fd There is no NULL constraint in CREATE TABLE - only NOT NULL one. 1997-08-22 03:17:55 +00:00
Vadim B. Mikheev ed2c54b240 DEFAULT handling
Use  for 'selct .. into ..' copy of TupleDesc (without constraints)
#ifdef NOT_USED for resetVarAttrLenForCreateTable (just free tupdesc copy)
1997-08-22 03:12:19 +00:00
Vadim B. Mikheev b5b3e03e34 DefineRelation: DEFAULT/CHECK handling 1997-08-22 03:03:56 +00:00
Vadim B. Mikheev 9e9584cc99 Store attr DEFAULT info in heap_create 1997-08-22 02:58:51 +00:00
Vadim B. Mikheev 55f7d4ea7d CreateTupleDescCopy don't copy constraints now!
+ CreateTupleDescCopyConstr to copy them too.
+ FreeTupleDesc
1997-08-22 02:55:39 +00:00
Bruce Momjian 76501c8aed Make psql use pager only when it has a tty. 1997-08-22 00:17:26 +00:00
Bruce Momjian 3dd23aadf0 Allow functions and operators on internally-identical types to succeed. 1997-08-22 00:02:19 +00:00
Bruce Momjian 0ab2921290 Change time function names to be more consistent, and check for zero divides, from Michael Reifenberg. 1997-08-21 23:57:00 +00:00
Bruce Momjian 23cce4ad4f Name change cleanup. 1997-08-21 14:33:05 +00:00
Bruce Momjian 671c4ea6f5 Remove unused spin function when no spinlocks. 1997-08-21 13:43:46 +00:00
Vadim B. Mikheev d37e93aafd #definitions for pg_attrdef & pg_relcheck names 1997-08-21 04:33:20 +00:00
Vadim B. Mikheev cc332d612b AttrConstr --> TupleConstr 1997-08-21 04:10:25 +00:00
Bruce Momjian e482462960 Rename pg_attribute.attnvals to attdisbursion. 1997-08-21 03:02:13 +00:00
Bruce Momjian f1edf02cc1 Change pg_attribute.attnvals to float4, change #ifdef 0 to #if 0, fix aix call to strNcpy, fix pg_super_user_id in pg_dumpall, change pg_database.dtadba from oid to int4. 1997-08-21 02:28:55 +00:00
Vadim B. Mikheev ac3d7b3146 + extern double *box_area(BOX *box); 1997-08-21 01:40:30 +00:00
Vadim B. Mikheev f2dd89b6fa + struct ConstaintDef - for constraints. 1997-08-21 01:39:25 +00:00
Vadim B. Mikheev 25aa0f8d04 New system relations to store DEFAULT/CHECK expressions. 1997-08-21 01:37:55 +00:00
Vadim B. Mikheev 197ced5923 Read info for DEFAULT from pg_attrdef. 1997-08-21 01:36:09 +00:00
Vadim B. Mikheev e3accffe66 Syntax for [CONSTRAINT name] CHECK ... 1997-08-21 01:34:44 +00:00
Vadim B. Mikheev e4247023f1 Get rid of attproc, atttyparg, attcanindex, attdefrel, attbound
from pg_attribute. atthasdef added.
1997-08-21 01:32:19 +00:00