summaryrefslogtreecommitdiff
path: root/src/include
AgeCommit message (Collapse)Author
1999-11-24Cleanup for pg_statistic commit.Bruce Momjian
1999-11-24Add pg_statistic index, add missing Hiroshi file.Bruce Momjian
1999-11-24Rename heap_replace to heap_update.Bruce Momjian
1999-11-23Tid access method feature from Hiroshi Inoue, Inoue@tpf.co.jpBruce Momjian
1999-11-23ecpg ECPGFree fix from Rene Hogendoorn.Bruce Momjian
1999-11-23Update opclass to be non-unique.Bruce Momjian
1999-11-22Add system indexes to match all caches.Bruce Momjian
Make all system indexes unique. Make all cache loads use system indexes. Rename *rel to *relid in inheritance tables. Rename cache names to be clearer.
1999-11-22Clean up some problems in error recovery --- elog() was pretty brokenTom Lane
for the case of errors in backend startup, and proc_exit's method for coping with errors during proc_exit was *completely* busted. Fixed per discussions on pghackers around 11/6/99.
1999-11-21Combine index_info and find_secondary_indexes into a single routine thatTom Lane
returns a list of RelOptInfos, eliminating the need for static state in index_info. That static state was a direct cause of coredumps; if anything decided to elog(ERROR) partway through an index_info search of pg_index, the next query would try to close a scan pointer that was pointing at no-longer-valid memory. Another example of the reasons to avoid static state variables...
1999-11-21Clean up comments.Tom Lane
1999-11-21Change backend-side COPY to write files with permissions 644 not 666Tom Lane
(whoever thought world-writable files were a good default????). Modify the pg_pwd code so that pg_pwd is created with 600 permissions. Modify initdb so that permissions on a pre-existing PGDATA directory are not blindly accepted: if the dir is already there, it does chmod go-rwx to be sure that the permissions are OK and the dir actually is owned by postgres.
1999-11-21Repair problem exposed by Jan's new parallel-regression-test scaffold:Tom Lane
inval.c thought it could safely use the catcache to look up the OIDs of system relations. Not good, considering that inval.c could be called during catcache loading, if a shared-inval message arrives. Rip out the lookup logic and instead use the known OIDs from pg_class.h.
1999-11-18Fix for arm32 and fix for dbname with dash.Bruce Momjian
1999-11-18Changed pg_rewrite attributes ev_qual and ev_action to the newJan Wieck
compressed lztext data type. Jan
1999-11-17Some minor corrections to the LZ compression. In fact I wanted toJan Wieck
HAVE the required OID's first. Jan
1999-11-17The new LZ compression and an lztext data type based on it.Jan Wieck
Jan
1999-11-16Modify elog() logic so that it won't try to longjmp(Warn_restart) beforeTom Lane
Warn_restart has been set by the backend main loop. This means that elog(ERROR) or elog(FATAL) in the postmaster or during backend startup now have well-defined behavior: proc_exit() rather than coredump. In the case of elog() inside the postmaster, I think that proc_exit() is probably not enough --- don't we want our child backends to be forced to quit too? But I don't understand Vadim's recent changes in this area, so I'll leave it to him to look over and tweak if needed.
1999-11-16Commit to make clearer distinction for temp names and real names.Bruce Momjian
Thanks to Tom Lane for ideas.
1999-11-15Clean up possible memory leakage in nodeSubplanTom Lane
1999-11-15Implement subselects in target lists. Also, relax requirement thatTom Lane
subselects can only appear on the righthand side of a binary operator. That's still true for quantified predicates like x = ANY (SELECT ...), but a subselect that delivers a single result can now appear anywhere in an expression. This is implemented by changing EXPR_SUBLINK sublinks to represent just the (SELECT ...) expression, without any 'left hand side' or combining operator --- so they're now more like EXISTS_SUBLINK. To handle the case of '(x, y, z) = (SELECT ...)', I added a new sublink type MULTIEXPR_SUBLINK, which acts just like EXPR_SUBLINK used to. But the grammar will only generate one for a multiple-left-hand-side row expression.
1999-11-12Fix ExecSubPlan to handle nulls per the SQL spec --- it didn't combineTom Lane
nulls with non-nulls using proper three-valued boolean logic. Also clean up ExecQual to make it clearer that ExecQual *does* follow the SQL spec for boolean nulls. See '[BUGS] (null) != (null)' thread around 10/26/99 for more detail.
1999-11-07New NameStr macro to convert Name to Str. No need for var.data anymore.Bruce Momjian
Fewer calls to nameout. Better use of RelationGetRelationName.
1999-11-06Add Linux ARM.Bruce Momjian
1999-11-04Improve getopt and readline support, from Peter Eisentraut.Bruce Momjian
1999-11-04Make it possible to execute crashed CREATE/DROP commands again.Hiroshi Inoue
Now indexes of pg_class and pg_type are unique indexes and guarantee the uniqueness of correponding attributes. heap_create() was changed to take another boolean parameter which allows to postpone the creation of disk file. The name of rd_nonameunlinked was changed to rd_unlinked. It is used generally(not only for noname relations) now. Requires initdb.
1999-11-01Eliminate local inefficiencies in updateTargetListEntry, make_var, andTom Lane
make_const --- don't repeat cache searches that aren't needed.
1999-11-01formatting cleanupBruce Momjian
1999-11-01Update version for 7.0.Bruce Momjian
1999-11-01Allow indexes on system catalogs for use in cache code.Bruce Momjian
Thanks to Hiroshi
1999-10-30Avoid duplicate ExecTypeFromTL() call in ExecInitJunkFilter() by passingTom Lane
in the TupleDesc that the caller already has (for call from ExecMain) or can make just as easily as ExecInitJunkFilter() can (for call from ExecAppend). Also, don't bother to build a junk filter for an INSERT operation that doesn't actually need one, which is the normal case.
1999-10-26Hello.Bruce Momjian
The following patch extends the COMMENT ON functionality to the rest of the database objects beyond just tables, columns, and views. The grammer of the COMMENT ON statement now looks like: COMMENT ON [ [ DATABASE | INDEX | RULE | SEQUENCE | TABLE | TYPE | VIEW ] <objname> | COLUMN <relation>.<attribute> | AGGREGATE <aggname> <aggtype> | FUNCTION <funcname> (arg1, arg2, ...) | OPERATOR <op> (leftoperand_typ rightoperand_typ) | TRIGGER <triggername> ON relname> Mike Mascari (mascarim@yahoo.com)
1999-10-25Standardize on MAXPGPATH as the size of a file pathname buffer,Tom Lane
eliminating some wildly inconsistent coding in various parts of the system. I set MAXPGPATH = 1024 in config.h.in. If anyone is really convinced that there ought to be a configure-time test to set the value, go right ahead ... but I think it's a waste of time.
1999-10-24Add a notion of a 'catalog version number' that can indicateTom Lane
when an initdb-forcing change has been applied within a development cycle. PG_VERSION serves this purpose for official releases, but we can't bump the PG_VERSION number every time we make a change to the catalogs during development. Instead, increase the catalog version number to warn other developers that you've made an incompatible change. See my mail to pghackers for more info.
1999-10-24Add comment explaining that this table doesn't do what youTom Lane
might think ... in fact doesn't do much of anything at the moment ...
1999-10-23Look Ma, no MAX_PARSE_BUFFER! (At least not in the backend.Tom Lane
pg_dump and interfaces/odbc still need some work.)
1999-10-18Update \dT again.Bruce Momjian
1999-10-18More \dT cleanupBruce Momjian
1999-10-18Clean up \dT display.Bruce Momjian
1999-10-18Make bpchar == char() clearer in \dT display.Bruce Momjian
1999-10-17Remove now-dead sort modules.Tom Lane
1999-10-17Final stage of psort reconstruction work: replace psort.c withTom Lane
a generalized module 'tuplesort.c' that can sort either HeapTuples or IndexTuples, and is not tied to execution of a Sort node. Clean up memory leakages in sorting, and replace nbtsort.c's private implementation of mergesorting with calls to tuplesort.c.
1999-10-16Second phase of psort reconstruction project: add bookkeeping logic toTom Lane
recycle storage within sort temp file on a block-by-block basis. This reduces peak disk usage to essentially just the volume of data being sorted, whereas it had been about 4x the data volume before.
1999-10-15Fix typo in descriptions.Bruce Momjian
1999-10-15Clean up type descriptions.Bruce Momjian
1999-10-15This patch implements ORACLE's COMMENT SQL command.Bruce Momjian
>From the ORACLE 7 SQL Language Reference Manual: ----------------------------------------------------- COMMENT Purpose: To add a comment about a table, view, snapshot, or column into the data dictionary. Prerequisites: The table, view, or snapshot must be in your own schema or you must have COMMENT ANY TABLE system privilege. Syntax: COMMENT ON [ TABLE table ] | [ COLUMN table.column] IS 'text' You can effectively drop a comment from the database by setting it to the empty string ''. ----------------------------------------------------- Example: COMMENT ON TABLE workorders IS 'Maintains base records for workorder information'; COMMENT ON COLUMN workorders.hours IS 'Number of hours the engineer worked on the task'; to drop a comment: COMMENT ON COLUMN workorders.hours IS ''; The current patch will simply perform the insert into pg_description, as per the TODO. And, of course, when the table is dropped, any comments relating to it or any of its attributes are also dropped. I haven't looked at the ODBC source yet, but I do know from an ODBC client standpoint that the standard does support the notion of table and column comments. Hopefully the ODBC driver is already fetching these values from pg_description, but if not, it should be trivial. Hope this makes the grade, Mike Mascari (mascarim@yahoo.com)
1999-10-13Split 'BufFile' routines out of fd.c into a new module, buffile.c. ExtendTom Lane
BufFile so that it handles multi-segment temporary files transparently. This allows sorts and hashes to work with data exceeding 2Gig (or whatever the local limit on file size is). Change psort.c to use relative seeks instead of absolute seeks for backwards scanning, so that it won't fail when the data volume exceeds 2Gig.
1999-10-12I have created a small patch that makes possible to compile pgsql on newerBruce Momjian
Cygwin snapshots (tested on 990115 which is recommended to use - it fixes some errors in B20.1) And I have another patch for including <sys/ipc.h> before <sys/sem.h> in backend/storage/lmgr/proc.c - it is required due the design of cygipc headers Dan
1999-10-11The 1st step to implement new type of scan,TidScan.Hiroshi Inoue
Now WHERE restriction on ctid is allowed though it is sequentially scanned.
1999-10-09Move __alpha to port/alpha.h.Bruce Momjian
1999-10-08Cleanup -is flag to -l for SSL. Another PERL variable name fix. CleanBruce Momjian
up debugging options for postmaster and postgres programs. postmaster -d is no longer optional. Documentation updates.