summaryrefslogtreecommitdiff
path: root/src/backend/commands
Commit message (Collapse)AuthorAgeFilesLines
* Change parameters to func_error().Thomas G. Lockhart1998-05-091-3/+3
|
* What I've done:Bruce Momjian1998-05-061-10/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Rewritten libpq to allow asynchronous clients. 2. Implemented client side of cancel protocol in library, and patched psql.c to send a cancel request upon SIGINT. The backend doesn't notice it yet :-( 3. Implemented 'Z' protocol message addition and renaming of copy in/out start messages. These are implemented conditionally, ie, the client protocol version is checked; so the code should still work with 1.0 clients. 4. Revised protocol and libpq sgml documents (don't have an SGML compiler, though, so there may be some markup glitches here). What remains to be done: 1. Implement addition of atttypmod field to RowDescriptor messages. The client-side code is there but ifdef'd out. I have no idea what to change on the backend side. The field should be sent only if protocol >= 2.0, of course. 2. Implement backend response to cancel requests received as OOB messages. (This prolly need not be conditional on protocol version; just do it if you get SIGURG.) 3. Update libpq.3. (I'm hoping this can be generated mechanically from libpq.sgml... if not, will do it by hand.) Is there any other doco to fix? 4. Update non-libpq interfaces as necessary. I patched libpgtcl so that it would compile, but haven't tested it. Dunno what needs to be done with the other interfaces. Have at it! Tom Lane
* show the index used in an explainMarc G. Fournier1998-04-271-2/+9
| | | | From: Zeugswetter Andreas SARZ <Andreas.Zeugswetter@telecom.at>
* This patch...Bruce Momjian1998-04-277-137/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Removes the unnecessary "#define AbcRegProcedure 123"'s from pg_proc.h. 2. Changes those #defines to use the names already defined in fmgr.h. 3. Forces the make of fmgr.h in backend/Makefile instead of having it made as a dependency in access/common/Makefile *hack*hack*hack* 4. Rearranged the #includes to a less helter-skelter arrangement, also changing <file.h> to "file.h" to signify a non-system header. 5. Removed "pg_proc.h" from files where its only purpose was for the #defines removed in item #1. 6. Added "fmgr.h" to each file changed for completeness sake. Turns out that #6 was not necessary for some files because fmgr.h was being included in a roundabout way SIX levels deep by the first include. "access/genam.h" ->"access/relscan.h" ->"utils/rel.h" ->"access/strat.h" ->"access/skey.h" ->"fmgr.h" So adding fmgr.h really didn't add anything to the compile, hopefully just made it clearer to the programmer. S Darren.
* Re-apply Darren's char2-16 removal code.Bruce Momjian1998-04-262-4/+4
|
* Back out char2-char16 removal. Add later.Bruce Momjian1998-04-072-4/+4
|
* Hi,Bruce Momjian1998-04-061-5/+3
| | | | | | | | | | | | | | | | | | | | | | 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
* Remove GetDatabaseName/Path and use globals. Make consts later.Bruce Momjian1998-04-051-2/+2
|
* remove the call to port-protos.h ...Marc G. Fournier1998-04-011-5/+1
|
* The following uuencoded, gzip'd file will ...Bruce Momjian1998-03-302-4/+4
| | | | | | | | | | | 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
* The buffer overrun while creating sequences turns out to be a readBruce Momjian1998-03-301-1/+3
| | | | | | | | | access overrun. For the sake of doing things properly here is a patch which fixes it. This patch is for the file backend/commands/sequence.c. Maurice Gittens
* There's a patch attached to fix gcc 2.8.x warnings, except for theBruce Momjian1998-03-303-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | 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
* pg_user cleanup.Bruce Momjian1998-03-061-13/+13
|
* pgindent run before 6.3 release, with Thomas' requested changes.Bruce Momjian1998-02-2615-534/+623
|
* Fix 6.X vacuum bug in shrinking code.Vadim B. Mikheev1998-02-251-15/+11
|
* From: Jan Wieck <jwieck@debis.com>Marc G. Fournier1998-02-255-75/+75
| | | | | | | | | | 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.
* Password fix. Now people have to do the REVOKE themselves.Bruce Momjian1998-02-191-0/+34
|
* Atttypmod cleanup.Bruce Momjian1998-02-131-3/+2
|
* From: Jan Wieck <jwieck@debis.com>Marc G. Fournier1998-02-131-2/+2
| | | | | | | | | Someone changed the parser to build a TypeName node on CREATE FUNCTION in any case. As a side effect, ALL! functions created got the proretset attribute to true. Thus for a SELECT the parser wrapped an Iter node around the Expr and since singleton functions set isDone the Iter returns no tuple up.
* Support for subselects.Vadim B. Mikheev1998-02-131-5/+47
|
* Goodbye register keyword. Compiler knows better.Bruce Momjian1998-02-111-2/+2
|
* Pass around typmod as int16.Bruce Momjian1998-02-101-5/+19
|
* Pass attypmod through to executor by adding to Var and Resdom.Bruce Momjian1998-02-103-7/+12
|
* Atttypmod cleanups.Bruce Momjian1998-02-071-4/+4
|
* atttypmod now -1.Bruce Momjian1998-02-071-1/+1
|
* Vacuum parameter fix.Bruce Momjian1998-02-031-2/+2
|
* Subselects with =, >, etc.Bruce Momjian1998-02-031-2/+4
| | | | Cleanup for vacuum help, manual page, and error message
* Supress call to tzset() in reset_timezone() if a new time zone has neverThomas G. Lockhart1998-02-031-48/+20
| | | | | been set in the session. General cleanup of timezone support code.
* Inline fastgetattr and others so data access does not use functionBruce Momjian1998-01-315-26/+26
| | | | calls.
* getpid/pid cleanupBruce Momjian1998-01-252-12/+8
|
* Add Var.varlevelup to code. More parser cleanup.Bruce Momjian1998-01-201-1/+3
|
* New pg_attribute.atttypmod for type-specific information likeBruce Momjian1998-01-163-8/+6
| | | | | | | | | | | 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.
* Thank god for searchable mail archives.PostgreSQL Daemon1998-01-154-84/+43
| | | | | | | | | Patch by: wieck@sapserv.debis.de (Jan Wieck) One of the design rules of PostgreSQL is extensibility. And to follow this rule means (at least for me) that there should not only be a builtin PL. Instead I would prefer a defined interface for PL implemetations.
* Fix CLUSTER.Bruce Momjian1998-01-101-1/+4
|
* Allow varchar() to only store needed bytes. Remove PALLOC,PALLOCTYPE,PFREE. ↵Bruce Momjian1998-01-071-7/+7
| | | | Clean up use of VARDATA.
* Move variable.c to commands/ and aclchk.c to catalog/.Bruce Momjian1998-01-052-2/+615
|
* Change some ABORTS to ERROR. Add line number when COPY Failure.Bruce Momjian1998-01-0517-224/+206
|
* Change elog(WARN) to elog(ERROR) and elog(ABORT).Bruce Momjian1998-01-0517-206/+206
|
* Slightly delayed patches from Todd...damn holidays :)Marc G. Fournier1997-12-301-7/+31
| | | | | | | | | | | | o A new patch that contains the following changes: -- The pg_pwd file is now cached in the postmaster's memory. -- pg_pwd is reloaded when the postmaster detects a flag file creat()'ed by a backend. -- qsort() is used to sort loaded password entries, and bsearch() is is used to find entries in the pg_pwd cache. -- backends now copy the pg_user relation to pg_pwd.pid, and then rename the temp file to be pg_pwd. -- The delimiter for pg_pwd has been changed to a tab character.
* Change some mallocs to palloc.Bruce Momjian1997-12-291-3/+3
|
* Fix for select 1=1 or 2=2, select 1=1 and 2=2, and select sum(2+2).Bruce Momjian1997-12-221-4/+2
|
* Major cleanout of PORTNAME variables from Makefiles...bound to screw upMarc G. Fournier1997-12-201-5/+1
| | | | some of the ports...
* More cleanups. I can now compile without PORTNAME being defined nMarc G. Fournier1997-12-191-2/+2
| | | | | | | | | Makefile.global. End result, if all goes well, should allow for much easier porting, since there will no longer be a concept of a "port". Most, if not everything, *should* be determined by configure, or by the compiler itself. Still work to be done though :)
* Makefile cleaned upMarc G. Fournier1997-12-173-8/+12
| | | | | | | | | async.c: #include <port-protos.h> surrounded by an #ifdef HAVE_STRDUP vacuum.c: #include <port-protos.h> commented out...can someone comment as to why it was included, as it doesn't seem to have any effect under FreeBSD so far...would like some sort of #ifdef wrapper like async.c if possible
* Make password null on startup.Bruce Momjian1997-12-121-8/+28
|
* Rename pg_plan and pg_eval to be more meaningful.Bruce Momjian1997-12-113-12/+12
|
* Major code cleanup following the pg_password insertion...Marc G. Fournier1997-12-091-1/+0
| | | | | ...malloc/free -> palloc/pfree ...fopen/fclose -> AllocateFile/FreeFile
* Add VARHDRSZ where needed. Many places just used 4.Bruce Momjian1997-12-062-3/+3
|
* Fix tolower loops to go in proper direction for cache.Bruce Momjian1997-12-052-3/+3
|
* Change Constraint structure name from ConstraintDef to Constraint.Thomas G. Lockhart1997-12-041-11/+9
| | | | | Change reference to field inside to be compatible with new definition as a "node" structure rather than a specialty structure.