summaryrefslogtreecommitdiff
path: root/src/backend/parser
AgeCommit message (Collapse)Author
1998-04-08Prepare the EXTRACT() clause for supporting TIMEZONE_HOURThomas G. Lockhart
and TIMEZONE_MINUTE but don't introduce until v6.4. Fix SET TIMEZONE LOCAL to pass null pointer rather than older "default" string. Fix handling of NULL pointer returns from FOREIGN KEY clauses which are currently ignored. Allow START as a table/column name.
1998-04-08Temporarily back out fixes for unary minus parsing.Thomas G. Lockhart
Will re-introduce for v6.4 but requires fixes for automatic type conversion beforehand.
1998-04-07Back out char2-char16 removal. Add later.Bruce Momjian
1998-04-06Hi,Bruce Momjian
Attached you'll find a (big) patch that fixes make dep and make depend in all Makefiles where I found it to be appropriate. It also removes the dependency in Makefile.global for NAMEDATALEN and OIDNAMELEN by making backend/catalog/genbki.sh and bin/initdb/initdb.sh a little smarter. This no longer requires initdb.sh that is turned into initdb with a sed script when installing Postgres, hence initdb.sh should be renamed to initdb (after the patch has been applied :-) ) This patch is against the 6.3 sources, as it took a while to complete. Please review and apply, Cheers, Jeroen van Vianen
1998-03-31Small HAVING cleanup.Bruce Momjian
1998-03-31Merge rename name page into alter table. Fix UNION with DISTINCTBruce Momjian
or ORDER BY bug.
1998-03-30The following uuencoded, gzip'd file will ...Bruce Momjian
1. Remove the char2, char4, char8 and char16 types from postgresql 2. Change references of char16 to name in the regression tests. 3. Rename the char16.sql regression test to name.sql. 4. Modify the regression test scripts and outputs to match up. Might require new regression.{SYSTEM} files... Darren King
1998-03-30There's a patch attached to fix gcc 2.8.x warnings, except for theBruce Momjian
yyerror ones from bison. It also includes a few 'enhancements' to the C programming style (which are, of course, personal). The other patch removes the compilation of backend/lib/qsort.c, as qsort() is a standard function in stdlib.h and can be used any where else (and it is). It was only used in backend/optimizer/geqo/geqo_pool.c, backend/optimizer/path/predmig.c, and backend/storage/page/bufpage.c > > Some or all of these changes might not be appropriate for v6.3, since we > > are in beta testing and since they do not affect the current functionality. > > For those cases, how about submitting patches based on the final v6.3 > > release? There's more to come. Please review these patches. I ran the regression tests and they only failed where this was expected (random, geo, etc). Cheers, Jeroen
1998-03-30I started adding the Having Clause and it works quite fine forBruce Momjian
sequential scans! (I think it will also work with hash, index, etc but I did not check it out! I made some High level changes which should work for all access methods, but maybe I'm wrong. Please let me know.) Now it is possible to make queries like: select s.sname, max(p.pid), min(p.pid) from part p, supplier s where s.sid=p.sid group by s.sname having max(pid)=6 and min(pid)=1 or avg(pid)=4; Having does not work yet for queries that contain a subselect statement in the Having clause, I'll try to fix this in the next days. If there are some bugs, please let me know, I'll start to read the mailinglists now! Now here is the patch against the original 6.3 version (no snapshot!!): Stefan
1998-03-26BETWEEN and LIKE patch from ThomasBruce Momjian
1998-03-18Allow parsing expressions with ") -" (scan.l, scan.c only).Thomas G. Lockhart
Make "TABLE" optional in "LOCK TABLE" command and "... INTO TABLE..." clause. Explicitly parse CREATE SEQUENCE options to allow a negative integer as an argument; this is an artifact of unary minus handling in scan.l. Add "PASSWORD" as an allowed column identifier. These fixes will require a "make clean install" but not a dump/reload.
1998-03-18Add checks for UNION target fields, and add optional TABLE to LOCKBruce Momjian
and SELECT manual pages and psql help.
1998-03-07Repair "LIKE" behavior with two adjacent wildcard characters ("_").Thomas G. Lockhart
Was ignoring second wildcard.
1998-02-27From: Darren King <darrenk@insightdist.com>Marc G. Fournier
Two incorrect printf formats in parser/parse_type.c. Prolly done by me a long time ago when I cleaned up int's and Oid's... Format flag is really just %u, not %ud. Harmless, but results in "type id lookup of 25d failed" instead of only "...25 failed"
1998-02-27In '(a,b,...) Op [ANY|ALL] (SubSelect)' Op is restricted toVadim B. Mikheev
'=' and '<>'.
1998-02-27From: Darren King <darrenk@insightdist.com>Marc G. Fournier
This patch will... 1. Remove the "-Wall" option from the ecpg/lib and ecpg/preproc Makefile. 2. Remove the addition of $(SRCDIR)/include and-or $(SRCDIR)/backend from ecpg/lib, ecpg/preproc, libpq and utils Makefiles. Already in CFLAGS... 3. Set MK_NO_LORDER and RANLIB in Makefile.aix to avoid a couple of extra steps taken care of by the 'ld' command anyways.
1998-02-26pgindent run before 6.3 release, with Thomas' requested changes.Bruce Momjian
1998-02-25From: Jan Wieck <jwieck@debis.com>Marc G. Fournier
seems that my last post didn't make it through. That's good since the diff itself didn't covered the renaming of pg_user.h to pg_shadow.h and it's new content. Here it's again. The complete regression test passwd with only some float diffs. createuser and destroyuser work. pg_shadow cannot be read by ordinary user.
1998-02-21First step done,Marc G. Fournier
below is the patch to have views to override the permission checks for the accessed tables. Now we can do the following: CREATE VIEW db_user AS SELECT usename, usesysid, usecreatedb, usetrace, usecatupd, '**********'::text as passwd, valuntil FROM pg_user; REVOKE ALL ON pg_user FROM public; REVOKE ALL ON db_user FROM public; GRANT SELECT ON db_user TO public;
1998-02-18Start shipping gram.y products gram.c and parse.h to avoid having to buildThomas G. Lockhart
them from scratch. gram.y has now grown so that some non-bison yaccs (including FreeBSDs) run out of room and quit.
1998-02-18Include products of gram.y to allow systems without bison to build Postgres.Thomas G. Lockhart
The parser recently grew too big for some yaccs, including FreeBSD.
1998-02-18Allow LIKE expression in constraint clause.Thomas G. Lockhart
Allow USER and VALID as column names and identifiers.
1998-02-18Fix parsing for <identifier>-<number> which was mis-identified as a unaryThomas G. Lockhart
minus. Example is SELECT f1-2 FROM INT4_TBL;
1998-02-18Fix useor for (a,b...) Op ANY/ALLVadim B. Mikheev
1998-02-13Atttypmod cleanup.Bruce Momjian
1998-02-13gram.y: ALL_SUBLINK type was returned for x Op (subquery).Vadim B. Mikheev
parse_expr.c: only Op of bool type are supported currently...
1998-02-13From: Tom I Helbekkmo <tih@Hamartun.Priv.NO>Marc G. Fournier
Apart from this Makefile hack, all I've done is to make dynamically loaded code modules fail properly (as was already done for __mips__, although I think this is too loose: I believe NetBSD for the pmax can do dynamic linking), and to add test-and-set lock handling. As Bruce suggested, this is done in a maximally efficient inlined way: I was not aware that this code was so important, speed-wise.
1998-02-13Fix for EXISTS.Vadim B. Mikheev
1998-02-11Try bumping to version two...Thomas G. Lockhart
1998-02-11Define ROW and STATEMENT as parser tokens.Thomas G. Lockhart
Use explicit tokens to decode CREATE TRIGGER clauses. Allow ROW and STATEMENT as column identifiers. Fix CAST syntax to require parens per SQL92 spec. Define TypeId to allow correct translation of type names in CREATE FUNCTION and other statements. Need to do this without looking up defined type names because CREATE FUNCTION can specify undefined (new) types. Define UserId to complete removal of "Id" generic entity. Define xlateSqlFunc() to convert SQL92 CHARACTER_LENGTH() and CHAR_LENGTH() functions to calls to length(). Define func_name parser entity for contexts requiring a function name. Have xlateSqlType() translate "float" to "float8".
1998-02-11Automatically promote out of range integers to floats.Thomas G. Lockhart
Throw elog(NOTICE) to flag promotion.
1998-02-10Pass around typmod as int16.Bruce Momjian
1998-02-10Pass attypmod through to executor by adding to Var and Resdom.Bruce Momjian
1998-02-07atttypmod now -1.Bruce Momjian
1998-02-06FIx hasSubLinks for Vadim.Bruce Momjian
1998-02-05FIx for varchar(), char() and INSERT .. SELECT.Bruce Momjian
1998-02-05Fix for varchar functions, and indextyple j-1 fix.Bruce Momjian
1998-02-05func_error() changed so that if caller is passed with NULL value, itsMarc G. Fournier
output at least doesn't appear that its missing something. wasn't particularly confident with removing 'caller' altogether :(
1998-02-05Clean up func_error() function completely removing caller variable asMarc G. Fournier
"more info then user requires"
1998-02-04Allow most expressions in BETWEEN clause. Allow all expressions ifThomas G. Lockhart
surrounded by parentheses (but not all are meaningful). Remove unused keywords ACL, APPEND, MERGE. Requires a "make clean" to recompile all code since keyword numeric assignments have changed with keyword removal.
1998-02-03Subselects with =, >, etc.Bruce Momjian
Cleanup for vacuum help, manual page, and error message
1998-02-03Remove unused keyword CHANGE.Thomas G. Lockhart
1998-02-03Parser cleanup for expr and subqueries.Bruce Momjian
1998-02-02set "caller" value in parse_func.h to func_get_detail instead of just ""Marc G. Fournier
1998-02-02Move all the isinf() stuff from float.c to isinf.c, and build it according toMarc G. Fournier
configure vs port specific #ifdef's...
1998-02-01Fix for psort. fixes regression tests.Bruce Momjian
1998-02-01AIX patch from Darren King and Univel patch from Billy Allie, mostlyBruce Momjian
related to grammar and parser issues, with one postmaster fix.
1998-01-27Deadlock ceallnup.Bruce Momjian
(void) change for aix and hp compilers. protocol cleanup.
1998-01-27From: Phil Thompson <phil@river-bank.demon.co.uk>Marc G. Fournier
Cleanup patches for previous protocol changes patch
1998-01-25Wish ppl would make up their mnd :)Marc G. Fournier