Bruce Momjian
6231e161c9
Implementation of UNIONs.
1997-12-24 06:06:58 +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
640fe03bcf
Improve (well, ok, fix) generated constraint name for column CHECK clause.
1997-12-16 15:45:46 +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
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
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
e9e1ff226f
Remove all time travel stuff. Small parser cleanup.
1997-11-20 23:24:03 +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
f3af1368bd
Rename strNcpy to StrNCpy, and change third parameter.
1997-10-25 01:10:58 +00:00
Vadim B. Mikheev
9b10d6ffda
Ignore copies of columns specified in ORDER/GROUP BY
1997-10-16 06:58:38 +00:00
Vadim B. Mikheev
defb10a450
DEFAULT is handled by analyze.c now.
1997-10-12 07:09:20 +00:00
Bruce Momjian
3f365ba0fc
Inline memset() as MemSet().
1997-09-18 20:22:58 +00:00
Vadim B. Mikheev
4948a51d74
Convert sequence names tolower.
1997-09-18 14:32:15 +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
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
1ccd423235
Massive commit to run PGINDENT on all *.c and *.h files.
1997-09-07 05:04:48 +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
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
Bruce Momjian
3dd23aadf0
Allow functions and operators on internally-identical types to succeed.
1997-08-22 00:02:19 +00:00
Bruce Momjian
1d8bbfd2e7
Make functions static where possible, enclose unused functions in #ifdef NOT_USED.
1997-08-19 21:40:56 +00:00
Bruce Momjian
b99c63cfc0
Now that names are null terminated, no need to do all that NAMEDATALEN stuff.
1997-08-18 20:53:48 +00:00
Bruce Momjian
ea5b5357cd
Remove more (void) and fix -Wall warnings.
1997-08-12 22:55:25 +00:00
Bruce Momjian
edb58721b8
Fix pgproc names over 15 chars in output. Add strNcpy() function. remove some (void) casts that are unnecessary.
1997-08-12 20:16:25 +00:00
Bruce Momjian
6ed1715b1f
Cleanup for NAMEDATALEN use.
1997-08-03 02:38:47 +00:00
Vadim B. Mikheev
ac994a69d6
Allow use parameters in target list having aggregates in functions.
1997-07-30 04:42:26 +00:00
Bruce Momjian
91f4df2f2c
Fix typechecking problem pointed out by Thomas.
1997-05-08 02:45:53 +00:00
Vadim B. Mikheev
a1fbd470a9
Fix GroupBy: enable functions over aggregates and GroupBy-ed fields
...
in target list.
1997-04-29 04:32:50 +00:00
Thomas G. Lockhart
ee2f8e0472
Modify references to function manager to use lower-case calls.
1997-04-27 19:16:44 +00:00
Vadim B. Mikheev
cc11cfdd46
Now we can GROUP BY func_results.
1997-04-05 06:29:03 +00:00
Vadim B. Mikheev
9729f6ca0d
CREATE/DROP SEQUENCE ...
...
Check nextval/currval permission in analyze.c.
1997-04-02 04:01:03 +00:00
Marc G. Fournier
127826978a
From: Dan McGuirk <mcguirk@indirect.com>
...
Subject: [HACKERS] equal column and table name patch
This fixes a bug where selects fail when there is a column with the same
name as the table it's a part of.
1997-03-12 20:51:33 +00:00
Bruce Momjian
34fd62c512
Remove case-sensitive identifiers. Thanks for Dan McGuirk for a reversal patch.
1997-03-02 01:03:44 +00:00
Bruce Momjian
2300ac0dc4
Add attribute optimization statistics.
1997-02-07 16:24:12 +00:00
Bruce Momjian
84876289cc
Cast constants to the type of the other binary operand.
...
Invalidate vacuum relation cache to use new row counts from vacuum.
1997-01-22 01:44:02 +00:00
Bruce Momjian
db7a90f1d9
Make GROUP BY work with aliases, ORDER BY with column numbers
1996-12-17 01:53:43 +00:00
Bruce Momjian
63df35e249
This patch changes quite a few instances of references of Oid's
...
as ints and longs. Touches on quite a few function args as
well. Most other files look ok as far as Oids go...still checking
though...
Since Oids are type'd as unsigned ints, they should prolly be used
with the %ud format string in elog and sprintf messages. Not sure
what kind of strangeness that could produce.
Darren King
1996-11-30 18:07:02 +00:00
Bruce Momjian
a3d773a693
Allow select oid,* from table. Allow * anywhere in target list.
1996-11-29 15:56:18 +00:00
Bryan Henderson
46d58fba33
Make it compile on Ultrix. Thanks Erik Bertelson.
1996-11-26 03:20:35 +00:00
Marc G. Fournier
07a65b2255
Commit of a *MAJOR* patch from Dan McGuirk <djm@indirect.com>
...
Changes:
* Unique index capability works using the syntax 'create unique
index'.
* Duplicate OID's in the system tables are removed. I put
little scripts called 'duplicate_oids' and 'find_oid' in
include/catalog that help to find and remove duplicate OID's.
I also moved 'unused_oids' from backend/catalog to
include/catalog, since it has to be in the same directory
as the include files in order to work.
* The backend tries converting the name of a function or aggregate
to all lowercase if the original name given doesn't work (mostly
for compatibility with ODBC).
* You can 'SELECT NULL' to your heart's content.
* I put my _bt_updateitem fix in instead, which uses
_bt_insertonpg so that even if the new key is so big that
the page has to be split, everything still works.
* All literal references to system catalog OID's have been
replaced with references to define'd constants from the catalog
header files.
* I added a couple of node copy functions. I think this was a
preliminary attempt to get rules to work.
1996-11-13 20:56:15 +00:00
Bruce Momjian
aaeef4d17d
All external function definitions now have prototypes that are checked.
1996-11-10 03:06:38 +00:00
Bruce Momjian
4b2b8592a0
Compile and warning cleanup
1996-11-08 06:02:30 +00:00
Marc G. Fournier
ce4c0ce1de
Some compile failure fixes from Keith Parks <emkxp01@mtcc.demon.co.uk>
1996-11-06 06:52:23 +00:00
Bruce Momjian
0108fddf13
Remove NULL_PATCH define
1996-11-04 04:35:48 +00:00
Bruce Momjian
8edbc3bde4
Remove ARRAY_PATCH define
1996-11-04 04:19:55 +00:00
Bruce Momjian
4cf9d03ec7
Added prototypes missing from parser patch.
...
Added needed include file.
1996-10-31 05:54:27 +00:00
Bruce Momjian
f59a46a8c8
Parser Overhaul
1996-10-30 02:02:41 +00:00
Bruce Momjian
83cb729887
More closing of relations left open by parser.
1996-10-14 03:53:53 +00:00