summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2002-07-06Move simple_prompt() into its own file to be shared with psql and pg_dump.Bruce Momjian
2002-07-05fixed bug reported by Michael, Dietrich (mdt@emdete.de) where a large object ↵Barry Lind
handle was being used after the end of the transaction and thus resulting in an error.
2002-07-05Fix a bug reported by Zhou Han.Hiroshi Inoue
2002-07-04Fix compile error in assert coded added by new DISTINCT ON patch.Bruce Momjian
2002-07-04More clearly document in pg_dump when we are dealing with an object nameBruce Momjian
as it appears in the schema dump, and index tags.
2002-07-04Implement the IS DISTINCT FROM operator per SQL99.Thomas G. Lockhart
Reused the Expr node to hold DISTINCT which strongly resembles the existing OP info. Define DISTINCT_EXPR which strongly resembles the existing OPER_EXPR opType, but with handling for NULLs required by SQL99. We have explicit support for single-element DISTINCT comparisons all the way through to the executor. But, multi-element DISTINCTs are handled by expanding into a comparison tree in gram.y as is done for other row comparisons. Per discussions, it might be desirable to move this into one or more purpose-built nodes to be handled in the backend. Define the optional ROW keyword and token per SQL99. This allows single-element row constructs, which were formerly disallowed due to shift/reduce conflicts with parenthesized a_expr clauses. Define the SQL99 TREAT() function. Currently, use as a synonym for CAST().
2002-07-04Document function args are required for pg_restore -P.Bruce Momjian
Fix pg_dump to not quote the function name in the storage tag. Fix pg_dump so GRANT/REVOKE(ACL) tag entries are not quoted, for consistency. Fix pg_restore to properly handle quotes and some spaces in -P.
2002-07-03Update FreeBSD template to properly compile c++ on alpha.Bruce Momjian
2002-07-03Add missing pgaccess copyright file, same as ours.Bruce Momjian
2002-07-03Fix some more boundary-case errors in psql variable substitution:Tom Lane
wasn't really right for case where :var is at the end of the line, was definitely not right if var expanded to empty in that case, and failed to recalculate thislen before jumping back to rescan.
2002-07-02Allow make_ctags to work with exuberant tags.Bruce Momjian
2002-07-02Indent libpq++ as mentioned in email. Format was terrible, and thisBruce Momjian
will make fixing things easier.
2002-07-02>the extra level of struct naming for pd_opaque has no obviousBruce Momjian
>usefulness. > >> [...] should I post a patch that puts pagesize directly into >> PageHeaderData? > >If you're so inclined. Given that pd_opaque is hidden in those macros, >there wouldn't be much of any gain in readability either, so I haven't >worried about changing the declaration. Thanks for the clarification. Here is the patch. Not much gain, but at least it saves the next junior hacker from scratching his head ... Manfred Koizar
2002-07-02Update to pgaccess 0.91.Bruce Momjian
2002-07-02The attached patch fixes 2 memory leaks in pg_dump, as well as correctsBruce Momjian
a spelling mistake and deletes an antiquated comment. Neil Conway
2002-07-02The attached patch fixes a minor memory leak in psql.Bruce Momjian
Neil Conway
2002-07-02There already was a macro PageGetItemId; this is now used in (almost)Bruce Momjian
all places, where pd_linp is accessed. Also introduce new macros SizeOfPageHeaderData and BTMaxItemSize. This is just source code cosmetic, no behaviour changed. Manfred Koizar
2002-07-02Minor code cleanup in bufmgr.c and bufmgr.h, mainly by moving repeatedBruce Momjian
lines of code into internal routines (drop_relfilenode_buffers, release_buffer) and by hiding unused routines (PrintBufferDescs, PrintPinnedBufs) behind #ifdef NOT_USED. Remove AbortBufferIO() declaration from bufmgr.c (already declared in bufmgr.h) Manfred Koizar
2002-07-02This patch, which is built upon the "HeapTupleHeader accessor macros"Bruce Momjian
patch from 2002-06-10, is supposed to reduce the heap tuple header size by four bytes on most architectures. Of course it changes the on-disk tuple format and therefore requires initdb. This overlays cmin/cmax/xmax fields into only two fields. Manfred Koizar
2002-07-02Back out regress/results changes. Real CVS problem worked-around.Bruce Momjian
2002-07-02Fix removal of results directory on 'make clean'. Just remove *.outBruce Momjian
files. Was causing CVS problems.
2002-07-01First phase of applying Rod Taylor's pg_depend patch. This just addsTom Lane
RESTRICT/CASCADE syntax to the DROP commands that need it, and propagates the behavioral option through the parser to the routines that execute drops. Doesn't do anything useful yet, but I figured I'd commit these changes so I could get out of the parser area while working on the rest.
2002-07-01Commit old versions into main branch again.Michael Meskes
Michael
2002-06-30Committing parser changes. Note, however, that the development bison seems ↵Michael Meskes
ot have a problem on my home machine. So these go in untested for the time being. But at least I have them in the archive. Michael
2002-06-281) prevent setting of KSQO on 7.3+ servers(Thanks to Dave Page).Hiroshi Inoue
2) Allow LF->CR/LF conversion under UNICODE driver.
2002-06-27fixed build.xml to echo correct jdbc version under ant1.6Barry Lind
2002-06-27general cleanup of jdbc codeBarry Lind
2002-06-26Restore error message I accidentally changed.Bruce Momjian
2002-06-26The attached patch fixes some spelling mistakes, makes theBruce Momjian
comments on one of the optimizer functions a lot more clear, adds a summary of the recent KSQO discussion to the comments in the code, adds regression tests for the bug with sequence state Tom fixed recently and another reg. test, and removes some PostQuel legacy stuff: ExecAppend -> ExecInsert, ExecRetrieve -> ExecSelect, etc. Error messages remain unchanged until a vote. Neil Conway
2002-06-26Treat \r as white space when parsing pg_hba and related files.Tom Lane
Should make life easier for DBAs who insist on editing files with Windoze tools.
2002-06-26translation patch submitted by Zhenbang Wei forth@mail.net.twBarry Lind
2002-06-26patch submitted by Jason Davies jason@netspade.com to provide proper java ↵Barry Lind
class name for a byte[]
2002-06-25Back out cleanup patch. Got old version and needs work.Bruce Momjian
Neil Conway
2002-06-25The attached patch fixes some spelling mistakes, makes theBruce Momjian
comments on one of the optimizer functions a lot more clear, adds a summary of the recent KSQO discussion to the comments in the code, adds regression tests for the bug with sequence state Tom fixed recently and another reg. test, and removes some PostQuel legacy stuff: ExecAppend -> ExecInsert, ExecRetrieve -> ExecSelect, etc. This was changed because the elog() messages from this routine are user-visible, so we should be using the SQL terms. Neil Conway
2002-06-25Here is a patch for a memory leak in rtree.c, version 7.2.1 (in codeBruce Momjian
that I submitted last year, alas). Kenneth Been
2002-06-25fixed retrieval of foreign/primary keys in imported/exported keysDave Cramer
2002-06-251) Add support for GB18030.Hiroshi Inoue
2) Fix a bug about the handling of large objects.
2002-06-24plpgsql's PERFORM statement now sets FOUND depending on whether anyTom Lane
rows were returned by the performed query. Per recent pgsql-general discussion.
2002-06-24patch to add support for callable statements to the jdbc driver. The patch ↵Barry Lind
was submitted by Paul Bethe pmbethe@yahoo.com
2002-06-24patch to update zh_TW message file for jdbc submitted by Zhenband Wei ↵Barry Lind
(forth@mail.net.tw)
2002-06-24patch submitted by Jason Davies jason@netspade.com to improve ↵Barry Lind
ResultSetMetaData.getColumnClassName() support
2002-06-24fixed bug reported by Wolfgang Winter w.winter@logitags.com where historic ↵Barry Lind
timestamps which do not have timezone info were being interpreted in local timezone instead of GMT. Also added a check to support timestamp vs. timestamptz in this code
2002-06-23It seems that ExecInit/EndIndexScan is leaking some memory...Bruce Momjian
For example, if I run a query, that uses an index scan, and call MemoryContextSt ats (CurrentMemoryContext) before ExecutorStart() and after ExecutorEnd() in ProcessQuery(), I am consistently see ing that the 'after' call shows 256 bytes more used, then 'before'... The problem seems to be in ExecEndIndexScan - it does not release scanstate, ind exstate, indexstate->iss_RelationDescs and indexstate -> iss_ScanDescs... Dmitry Tkach
2002-06-23Remove unused INET6 variable.Bruce Momjian
2002-06-23Remove INET6 from SSL. We don't support INET6 yet.Bruce Momjian
2002-06-22uint -> uint32, portability.Bruce Momjian
2002-06-22Implement SQL99 CREATE CAST and DROP CAST statements.Thomas G. Lockhart
Also implement alternative forms to expose the PostgreSQL CREATE FUNCTION features. Implement syntax for READ ONLY and READ WRITE clauses in SET TRANSACTION. READ WRITE is already implemented (of course). Implement syntax for "LIKE table" clause in CREATE TABLE. Should be fairly easy to complete since it resembles SELECT INTO. Implement MATCH SIMPLE clause for foreign key definitions. This is explicit SQL99 syntax for the default behavior, so we now support it :) Start implementation of shorthand for national character literals in scanner. For now, just swallow the leading "N", but sometime soon let's figure out how to pass leading type info from the scanner to the parser. We should use the same technique for binary and hex bit string literals, though it might be unusual to have two apparently independent literal types fold into the same storage type.
2002-06-21Remove Jan's copyright, with his approval.Bruce Momjian
2002-06-20Clean up some copyrights.Bruce Momjian
2002-06-20Add another missing SRF file.Bruce Momjian