summaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_relation.c
Commit message (Collapse)AuthorAgeFilesLines
* New NameStr macro to convert Name to Str. No need for var.data anymore.Bruce Momjian1999-11-071-2/+2
| | | | | | Fewer calls to nameout. Better use of RelationGetRelationName.
* Fix planner and rewriter to follow SQL semantics for tables that areTom Lane1999-10-071-16/+23
| | | | | | | | | | | mentioned in FROM but not elsewhere in the query: such tables should be joined over anyway. Aside from being more standards-compliant, this allows removal of some very ugly hacks for COUNT(*) processing. Also, allow HAVING clause without aggregate functions, since SQL does. Clean up CREATE RULE statement-list syntax the same way Bruce just fixed the main stmtmulti production. CAUTION: addition of a field to RangeTblEntry nodes breaks stored rules; you will have to initdb if you have any rules.
* Disable new FROM-clause warning.Bruce Momjian1999-09-291-1/+3
|
* Add subquery mention in auto-create table entry.Bruce Momjian1999-09-281-2/+4
|
* Reverse out last scan.l patch for minus handling.\Bruce Momjian1999-09-281-2/+2
|
* Emit warning on SELECT pg_language.*Bruce Momjian1999-09-271-1/+4
|
* Mega-commit to make heap_open/heap_openr/heap_close take anTom Lane1999-09-181-13/+5
| | | | | | | | | | | | | | | | | additional argument specifying the kind of lock to acquire/release (or 'NoLock' to do no lock processing). Ensure that all relations are locked with some appropriate lock level before being examined --- this ensures that relevant shared-inval messages have been processed and should prevent problems caused by concurrent VACUUM. Fix several bugs having to do with mismatched increment/decrement of relation ref count and mismatched heap_open/close (which amounts to the same thing). A bogus ref count on a relation doesn't matter much *unless* a SI Inval message happens to arrive at the wrong time, which is probably why we got away with this sloppiness for so long. Repair missing grab of AccessExclusiveLock in DROP TABLE, ALTER/RENAME TABLE, etc, as noted by Hiroshi. Recommend 'make clean all' after pulling this update; I modified the Relation struct layout slightly. Will post further discussion to pghackers list shortly.
* Rewrite parser's handling of INSERT ... SELECT so that processingTom Lane1999-07-191-123/+11
| | | | | | | | | of the SELECT part of the statement is just like a plain SELECT. All INSERT-specific processing happens after the SELECT parsing is done. This eliminates many problems, e.g. INSERT ... SELECT ... GROUP BY using the wrong column labels. Ensure that DEFAULT clauses are coerced to the target column type, whether or not stored clause produces the right type. Substantial cleanup of parser's array support.
* Move some system includes into c.h, and remove duplicates.Bruce Momjian1999-07-171-2/+1
|
* Final cleanup.Bruce Momjian1999-07-161-3/+3
|
* Clean up #include in /include directory. Add scripts for checking includes.Bruce Momjian1999-07-151-1/+2
|
* pgindent run over code.Bruce Momjian1999-05-251-3/+3
|
* Fix for DEFAULT ''.Bruce Momjian1999-05-221-2/+4
|
* Change resjunk to a boolean.Bruce Momjian1999-05-171-2/+2
|
* Clean up error messages.Thomas G. Lockhart1999-02-231-10/+10
|
* From: Tatsuo Ishii <t-ishii@sra.co.jp>Marc G. Fournier1999-02-211-2/+2
| | | | | | Ok. I made patches replacing all of "#if FALSE" or "#if 0" to "#ifdef NOT_USED" for current. I have tested these patches in that the postgres binaries are identical.
* Change my-function-name-- to my_function_name, and optimizer renames.Bruce Momjian1999-02-131-2/+2
|
* OK, folks, here is the pgindent output.Bruce Momjian1998-09-011-10/+12
|
* Renaming cleanup, no pgindent yet.Bruce Momjian1998-09-011-9/+9
|
* heap_fetch requires buffer pointer, must be released; heap_getnextBruce Momjian1998-08-191-9/+9
| | | | | | | | | | | | | no longer returns buffer pointer, can be gotten from scan; descriptor; bootstrap can create multi-key indexes; pg_procname index now is multi-key index; oidint2, oidint4, oidname are gone (must be removed from regression tests); use System Cache rather than sequential scan in many places; heap_modifytuple no longer takes buffer parameter; remove unused buffer parameter in a few other functions; oid8 is not index-able; remove some use of single-character variable names; cleanup Buffer variables usage and scan descriptor looping; cleaned up allocation and freeing of tuples; 18k lines of diff;
* From: Jan Wieck <jwieck@debis.com>Marc G. Fournier1998-08-181-2/+7
| | | | | | | | | Hi, as proposed here comes the first patch for the query rewrite system. <for details, see archive dated Mon, 17 Aug 1998>
* Allow floating point constants for "def_arg" numeric arguments.Thomas G. Lockhart1998-07-081-8/+28
| | | | | | Used in the generic "CREATE xxx" parsing. Do some automatic type conversion for inserts from other columns. Previous trouble with "resjunk" regression test remains for now.
* pgindent run before 6.3 release, with Thomas' requested changes.Bruce Momjian1998-02-261-19/+22
|
* Pass attypmod through to executor by adding to Var and Resdom.Bruce Momjian1998-02-101-8/+4
|
* FIx for varchar(), char() and INSERT .. SELECT.Bruce Momjian1998-02-051-4/+4
|
* Add Var.varlevelup to code. More parser cleanup.Bruce Momjian1998-01-201-41/+74
|
* Parser cleanup.Bruce Momjian1998-01-201-64/+37
| | | | Add lock to i386 asm.
* New pg_attribute.atttypmod for type-specific information likeBruce Momjian1998-01-161-5/+10
| | | | | | | | | | | varchar length. Cleans up code so attlen is always length. Removed varchar() hack added earlier. Will fix bug in selecting varchar() fields, and varchar() can be variable length.
* Change elog(WARN) to elog(ERROR) and elog(ABORT).Bruce Momjian1998-01-051-13/+13
|
* Fix for count(*), aggs with views and multiple tables and sum(3).Bruce Momjian1998-01-041-29/+1
|
* Make parser functions static where possible.Bruce Momjian1997-11-261-2/+5
|
* Cleanup up include files.Bruce Momjian1997-11-261-21/+6
|
* Break parser functions into smaller files, group together.Bruce Momjian1997-11-251-0/+480