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
600c958a30
Add UNION, GROUP, DISTINCT to INSERT.
1998-01-11 03:41:57 +00:00
Bruce Momjian
e6c714bf30
Bye CursorStmt, now use SelectStmt.
1998-01-10 04:30:11 +00:00
Bruce Momjian
3d15d1332a
Remove old quel labels.
1998-01-09 20:06:08 +00:00
Bruce Momjian
0d9fc5afd6
Change elog(WARN) to elog(ERROR) and elog(ABORT).
1998-01-05 03:35:55 +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
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
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