summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2004-06-02OK, here's the final version of ALTER TABLE ... SET WITHOUT CLUSTER.Bruce Momjian
Has docs + regression test. Christopher Kings-Lynne
2004-06-02Fix breakage from GUC-extension-variables patch.Tom Lane
2004-06-02Adjust btree index build to not use shared buffers, thereby avoiding theTom Lane
locking conflict against concurrent CHECKPOINT that was discussed a few weeks ago. Also, if not using WAL archiving (which is always true ATM but won't be if PITR makes it into this release), there's no need to WAL-log the index build process; it's sufficient to force-fsync the completed index before commit. This seems to gain about a factor of 2 in my tests, which is consistent with writing half as much data. I did not try it with WAL on a separate drive though --- probably the gain would be a lot less in that scenario.
2004-06-01Add locale setting for pg_ctl.Bruce Momjian
2004-06-01Align GRANT/REVOKE behavior more closely with the SQL spec, per discussionTom Lane
of bug report #1150. Also, arrange that the object owner's irrevocable grant-option permissions are handled implicitly by the system rather than being listed in the ACL as self-granted rights (which was wrong anyway). I did not take the further step of showing these permissions in an explicit 'granted by _SYSTEM' ACL entry, as that seemed more likely to bollix up existing clients than to do anything really useful. It's still a possible future direction, though.
2004-06-01Fix silly bugTeodor Sigaev
2004-06-01FastList is history, yay.Tom Lane
2004-06-01List pg_trgm in contrib Makefile and README.Tom Lane
2004-06-01Just about there on de-FastList-ification.Tom Lane
2004-06-01More locale fixes for pg_ctl.Bruce Momjian
2004-06-01Some more de-FastList-ification.Tom Lane
2004-06-01Desultory de-FastList-ification. RelOptInfo.reltargetlist is back toTom Lane
being a plain List.
2004-06-01Remove init_nls() functions, call set_pglocale() directly.Bruce Momjian
Add locale to pg_ctl.c.
2004-06-01Add pgpid_t for use with pids.Bruce Momjian
2004-05-31Additional mop-up for sync-to-fsync changes: avoid issuing fsyncs forTom Lane
temp tables, and avoid WAL-logging truncations of temp tables. Do issue fsync on truncated files (not sure this is necessary but it seems like a good idea).
2004-05-31Minor code rationalization: FlushRelationBuffers just returns void,Tom Lane
rather than an error code, and does elog(ERROR) not elog(WARNING) when it detects a problem. All callers were simply elog(ERROR)'ing on failure return anyway, and I find it hard to envision a caller that would not, so we may as well simplify the callers and produce the more useful error message directly.
2004-05-31Suppress compile warnings on machines where the INT64CONST() decorationTom Lane
is actually needed. Per Oliver Elphick.
2004-05-31Too few parens for my taste in this macro.Tom Lane
2004-05-31I think I've finally identified the cause of the off-by-one-secondTom Lane
issue in timestamp conversion that we hacked around for so long by ignoring the seconds field from localtime(). It's simple: you have to watch out for platform-specific roundoff error when reducing a possibly-fractional timestamp to integral time_t form. In particular we should subtract off the already-determined fractional fsec field. This should be enough to get an exact answer with int64 timestamps; with float timestamps, throw in a rint() call just to be sure.
2004-05-31Have pg_ctl print pid and error on signal failure, per suggestion from Tom.Bruce Momjian
2004-05-31trgm - Trigram matching for PostgreSQLTeodor Sigaev
-------------------------------------- The pg_trgm contrib module provides functions and index classes for determining the similarity of text based on trigram matching.
2004-05-311 add namespaces as Tom suggest http://www.pgsql.ru/db/mw/msg.html?mid=1987703Teodor Sigaev
2 remove select qeury in inserts
2004-05-31Fix memory leak with pg_regexecTeodor Sigaev
2004-05-31Fix memory leak with pg_regcompTeodor Sigaev
2004-05-31Update pg_dump -v comments to mention additional comments in dump file.Bruce Momjian
2004-05-31Win32 related patch by Darko Prenosil. Small correct by teodorTeodor Sigaev
2004-05-31Per previous discussions, get rid of use of sync(2) in favor ofTom Lane
explicitly fsync'ing every (non-temp) file we have written since the last checkpoint. In the vast majority of cases, the burden of the fsyncs should fall on the bgwriter process not on backends. (To this end, we assume that an fsync issued by the bgwriter will force out blocks written to the same file by other processes using other file descriptors. Anyone have a problem with that?) This makes the world safe for WIN32, which ain't even got sync(2), and really makes the world safe for Unixen as well, because sync(2) never had the semantics we need: it offers no way to wait for the requested I/O to finish. Along the way, fix a bug I recently introduced in xlog recovery: file truncation replay failed to clear bufmgr buffers for the dropped blocks, which could result in 'PANIC: heap_delete_redo: no block' later on in xlog replay.
2004-05-31Done:Bruce Momjian
> o -Allow Java server-side programming
2004-05-31Remove pljava todo info.Bruce Momjian
2004-05-30Use the new List API function names throughout the backend, and disable theNeil Conway
list compatibility API by default. While doing this, I decided to keep the llast() macro around and introduce llast_int() and llast_oid() variants.
2004-05-30Paranoia: ensure MyBackendId is InvalidBackendId in a process that hasTom Lane
never executed SIBackendInit().
2004-05-30Add thread library to libpgport creation.Bruce Momjian
2004-05-30Implement new PostmasterIsAlive() check for WIN32, per Claudio Natoli.Tom Lane
In passing, align a few error messages with the style guide.
2004-05-29Separate out bgwriter code into a logically separate module, ratherTom Lane
than being random pieces of other files. Give bgwriter responsibility for all checkpoint activity (other than a post-recovery checkpoint); so this child process absorbs the functionality of the former transient checkpoint and shutdown subprocesses. While at it, create an actual include file for postmaster.c, which for some reason never had its own file before.
2004-05-29Translation updatePeter Eisentraut
2004-05-29Translation updatesPeter Eisentraut
2004-05-29Translation updatePeter Eisentraut
2004-05-29Fix another place that assumed 'x = lcons(y, z)' would not have anyTom Lane
side-effect on the original list z. I fear we have a few more of these to track down yet :-(.
2004-05-28Remove quotes around $CONFIG_LINKS. Caused improper expansion.Bruce Momjian
2004-05-28When checking for thread safety with src/tools/thread/thread_test.c, theBruce Momjian
mktemp function wants an argument that contains 6 X, while the current version only supplies 5 X which will fail on my SuSE 8.1. Andreas Pflug
2004-05-28Fix minor error in comment.Tom Lane
2004-05-28Fix thinko in recent patch to change temp-table permissions behavior:Tom Lane
this is an aclmask function and does not have the same return convention as aclcheck functions. Also adjust the behavior so that users without CREATE TEMP permission still have USAGE permission on their session's temp schema. This allows privileged code to create a temp table and make it accessible to code that's not got the same privilege. (Since the default permissions on a table are no-access, an explicit grant on the table will still be needed; but I see no reason that the temp schema itself should prohibit such access.)
2004-05-28Stat function now can show statistics per weight of lexemesTeodor Sigaev
2004-05-28Fix some typos I introduced in WIN32-only code late last night.Tom Lane
Thanks to Thomas Hallgren.
2004-05-28New version. Add support for int2, int8, float4, float8, timestamp ↵Teodor Sigaev
with/without time zone, time with/without time zone, date, interval, oid, money and macaddr, char, varchar/text, bytea, numeric, bit, varbit, inet/cidr types for GiST
2004-05-28Code review for EXEC_BACKEND changes. Reduce the number of #ifdefs byTom Lane
about a third, make it work on non-Windows platforms again. (But perhaps I broke the WIN32 code, since I have no way to test that.) Fold all the paths that fork postmaster child processes to go through the single routine SubPostmasterMain, which takes care of resurrecting the state that would normally be inherited from the postmaster (including GUC variables). Clean up some places where there's no particularly good reason for the EXEC and non-EXEC cases to work differently. Take care of one or two FIXMEs that remained in the code.
2004-05-28Seems we forgot the installdirs target in this makefile.Tom Lane
2004-05-28Make sure elog behaves sanely if invoked before GUC initializes.Tom Lane
2004-05-27On WIN32, don't choke when setlocale(LC_MESSAGES, "") returns NULL.Tom Lane
Per report from Magnus.
2004-05-27Get rid of the former rather baroque mechanism for propagating the valuesTom Lane
of ThisStartUpID and RedoRecPtr into new backends. It's a lot easier just to make them all grab the values out of shared memory during startup. This helps to decouple the postmaster from checkpoint execution, which I need since I'm intending to let the bgwriter do it instead, and it also fixes a bug in the Win32 port: ThisStartUpID wasn't getting propagated at all AFAICS. (Doesn't give me a lot of faith in the amount of testing that port has gotten.)