summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2001-03-13Provide more useful error message if 'postgres -V' failed. AdvertisePeter Eisentraut
pg_ctl '-l' option.
2001-03-13Change xlog page-header format to include StartUpID. Use the SUI toTom Lane
detect case that next page in log came from an older run than the prior page. This avoids the necessity to re-zero the log after recovery from a crash, which is good because we need not risk destroying valuable log information. This forces another initdb since yesterday :-(. Need to get that log reset utility done...
2001-03-13- Use subselect when enabling triggers,Philip Warner
- Use exact table names when enabling/disabling triggers
2001-03-13The attached file contains the registry settings required to install theHiroshi Inoue
ODBC driver on Windows 9X/ME/NT/2K when using the later versions of the driver that don't have the Installshield installation: 1) Install psqlodbc.dll in to C:\Windows\System or C:\Winnt\System32 2) Add the registry settings in the attached file using regedit. A useful addition to src/interfaces/odbc perhaps? Regards, Dave.
2001-03-13XLOG (and related) changes:Tom Lane
* Store two past checkpoint locations, not just one, in pg_control. On startup, we fall back to the older checkpoint if the newer one is unreadable. Also, a physical copy of the newest checkpoint record is kept in pg_control for possible use in disaster recovery (ie, complete loss of pg_xlog). Also add a version number for pg_control itself. Remove archdir from pg_control; it ought to be a GUC parameter, not a special case (not that it's implemented yet anyway). * Suppress successive checkpoint records when nothing has been entered in the WAL log since the last one. This is not so much to avoid I/O as to make it actually useful to keep track of the last two checkpoints. If the things are right next to each other then there's not a lot of redundancy gained... * Change CRC scheme to a true 64-bit CRC, not a pair of 32-bit CRCs on alternate bytes. Polynomial borrowed from ECMA DLT1 standard. * Fix XLOG record length handling so that it will work at BLCKSZ = 32k. * Change XID allocation to work more like OID allocation. (This is of dubious necessity, but I think it's a good idea anyway.) * Fix a number of minor bugs, such as off-by-one logic for XLOG file wraparound at the 4 gig mark. * Add documentation and clean up some coding infelicities; move file format declarations out to include files where planned contrib utilities can get at them. * Checkpoint will now occur every CHECKPOINT_SEGMENTS log segments or every CHECKPOINT_TIMEOUT seconds, whichever comes first. It is also possible to force a checkpoint by sending SIGUSR1 to the postmaster (undocumented feature...) * Defend against kill -9 postmaster by storing shmem block's key and ID in postmaster.pid lockfile, and checking at startup to ensure that no processes are still connected to old shmem block (if it still exists). * Switch backends to accept SIGQUIT rather than SIGUSR1 for emergency stop, for symmetry with postmaster and xlog utilities. Clean up signal handling in bootstrap.c so that xlog utilities launched by postmaster will react to signals better. * Standalone bootstrap now grabs lockfile in target directory, as added insurance against running it in parallel with live postmaster.
2001-03-12Avoid O(N^2) behavior in deferredTriggerAddEvent() for large numbers ofTom Lane
tuples inserted/deleted/updated in a single transaction. On my machine, this reduced the time to delete 80000 tuples in a foreign-key-referencing table from ~15min to ~8sec.
2001-03-11Add uninstall target to Java build.Peter Eisentraut
Respect default port setting in JDBC driver. Pick up version number from Makefile.global. Change installation directory to share/java/. Document.
2001-03-10Turns out the HPUX linker likes -Bsymbolic too. Without this, ODBCTom Lane
driver does not work because its internal cross-references get bound to similarly named functions in unixODBC shared library.
2001-03-10Provide a hack to let initialization happen on platforms for whichTom Lane
psqlodbc.c's constructor-making techniques do not work.
2001-03-10Do not accept values from sections following the specified section.Tom Lane
2001-03-10Use install-sh unconditionally.Peter Eisentraut
2001-03-10FATAL errors should cause exit with nonzero status if we are not runningTom Lane
under the postmaster --- specifically, if we are a standalone backend running under the initdb script, this is critical!
2001-03-101)Allow the access to indexes with up to 16 keys.Hiroshi Inoue
2)Fix some memory leaks. 3)Change some bogus error messages.
2001-03-09Don't choke on superuser names containing random punctuation.Tom Lane
2001-03-09Recursive distclean shouldn't depend on recursive clean. SubdirectoriesPeter Eisentraut
handle this.
2001-03-09hold interupts during LockWaitCancel().Hiroshi Inoue
2001-03-08A subplan invoked within an aggregate function's argument shouldTom Lane
be allowed to receive ungrouped variables of the current query level. Curious that no one reported this bug before...
2001-03-08Modify wchar conversion routines to not fetch the next byte past the endTom Lane
of a counted input string. Marinos Yannikos' recent crash report turns out to be due to applying pg_ascii2wchar_with_len to a TEXT object that is smack up against the end of memory. This is the second just-barely- reproducible bug report I have seen that traces to some bit of code fetching one more byte than it is allowed to. Let's be more careful out there, boys and girls. While at it, I changed the code to not risk a similar crash when there is a truncated multibyte character at the end of an input string. The output in this case might not be the most reasonable output possible; if anyone wants to improve it further, step right up...
2001-03-07Repair a number of places that didn't bother to check whether PageAddItemTom Lane
succeeds or not. Revise rtree page split algorithm to take care about making a feasible split --- ie, will the incoming tuple actually fit? Failure to make a feasible split, combined with failure to notice the failure, account for Jim Stone's recent bug report. I suspect that hash and gist indices may have the same type of bug, but at least now we'll get error messages rather than silent failures if so. Also clean up rtree code to use Datum rather than char* where appropriate.
2001-03-07> Applied. Thanks.Bruce Momjian
One more :)) It's for improper function argumets for PLTCL_UNKNOWN_SUPPORT code I'm not an autoconf expert, but is it possible to enable unknown support in pltcl with configure option ? This support is really handy for real life usage of pl/tcl. seva@sevasoft.kiev.ua
2001-03-07pltcl_loadmod has problems with big (>4k) modules because of missing incrBruce Momjian
in splitting code: seva@sevasoft.kiev.ua
2001-03-06Believe $POSTGRES_LIB and $POSTGRES_INCLUDE only if they name actualTom Lane
directories, per suggestion from Robert Creager.
2001-03-06Help message s/dump/restore/ (must have been copy&pasted from pg_dump).Peter Eisentraut
2001-03-06Tue Mar 06 12:05:00 GMT 2001 peter@retep.org.ukPeter Mount
- Removed org.postgresql.xa.Test from the JDBC EE driver as it's an old test class and prevented it from compiling.
2001-03-06- Dump relevant parts of sequences only when doing schemaOnly & dataOnlyPhilip Warner
- Prevent double-dumping of sequences when dataOnly.
2001-03-06- Only disable triggers in DataOnly (or implied data-only) restores.Philip Warner
- Change -U option to -L to allow -U to specify username in future. (pg_restore)
2001-03-05Update email addresses.Bruce Momjian
2001-03-05Here is the chinese_big5 patch for PgAccess. I've tested under ChineseBruce Momjian
Windows 2000 without any problem. Have fun. LM.Liu
2001-03-05Ok, I've split todays commit into three, the first two already done had somePeter Mount
bits in JDBC & the first set of tools into contrib. This is the third, and deals with enabling JDBC to be compiled with the main source. What it does is add a new option to configure: --with-java This option tells configure to look for ant (our build tool of choice) and if found, it then compiles both the JDBC driver and the new tools as part of the normal make. Also, when the postgresql install is done, all the .jar files are also installed into the ${PGLIB}/java directory (thought best to keep then separate) Now I had some conflicts when this applied so could someone please double check that everything is ok? Peter
2001-03-05Minor fixes...Peter Mount
2001-03-04Update mysql converter, new version released.Bruce Momjian
2001-03-03Add configure check for -lunix, for QNX.Peter Eisentraut
Recode test for equality of source and build directory using 'test -ef', because even using pwd you might not get equal strings. Thanks, QNX.
2001-03-03Update the version number. We may change this to 7.1 if we align it withD'Arcy J.M. Cain
PostgreSQL. Add notice that development has moved into the PostgreSQL tree.
2001-03-03Add oid to list of keys cached.D'Arcy J.M. Cain
Add a test to avoid an exception in certain cases.
2001-03-03Incrementing version number in preparation for next release. Note that ID'Arcy J.M. Cain
am talking with Thomas Lockhart about the idea of bringing the PyGreSQL version number into alignment with PostgreSQL so this may change to 7.1 before the release. I have added to the copyright to indicate that from now on the PostgreSQL copyright will apply. If someone wants to make that clearer please do. The existing copyrights need to stay there for now but if necessary I can ask Pascal Andre if he agrees to a different wording. Added reference to the Python DB-API 2.0 compliant API wrapper. Added reference to the PyGreSQL mailing list.
2001-03-03Added postgres.h header for more type checking.D'Arcy J.M. Cain
Changed the way that OID is retrieved on inserts. PQoidStatus appears to be deprecated so I am using PQoidValue instead.
2001-03-01Add missing include.Peter Eisentraut
2001-03-01Fix memory leak.Peter Eisentraut
2001-03-01Ensure previous setting of pset.queryFout is restored after a failedTom Lane
backslash-g command.
2001-03-01Add missing semicolon required by QNX shell.Peter Eisentraut
from "Tegge, Bernd" <tegge@repas-aeg.de>
2001-03-01Remove HAVE_OPTARG per discussion in hackers list.Tatsuo Ishii
2001-02-28Do not strip whitespace within quotes.Peter Eisentraut
2001-02-27Tweak portal (cursor) code so that it will not call the executor againTom Lane
when user does another FETCH after reaching end of data, or another FETCH backwards after reaching start. This is needed because some plan nodes are not very robust about being called again after they've already returned NULL; for example, MergeJoin will crash in some states but not others. While the ideal approach would be for them all to handle this correctly, it seems foolish to assume that no such bugs would creep in again once cleaned up. Therefore, the most robust answer is to prevent the situation from arising at all.
2001-02-27Mark new text<->date, text<->time, text<->timetz conversion functions asTom Lane
noncachable, so that CURRENT_DATE and CURRENT_TIME work as functions again, rather than being collapsed to constants immediately. Marking the reverse conversions noncachable might be overkill, but I'm not sure; do these datatypes have the notion of a CURRENT value? Better safe than sorry, for now.
2001-02-27Massive commits for SunOS4 port.Tatsuo Ishii
2001-02-27Fix vacuum analyze error.Tatsuo Ishii
vacuum analyze on pg_type fails if bogus entries remain in pg_operator. Here is a sample script to reproduce the problem. drop table t1; create table t1(i int); drop function foo(t1,t1); create function foo(t1,t1) returns bool as 'select true' language 'sql'; create operator = ( leftarg = t1, rightarg = t1, commutator = =, procedure = foo ); drop table t1; vacuum analyze;
2001-02-26Fixed variable handling in preproc.y.Michael Meskes
2001-02-26Allow pgaccess to input Japanese. See included mail.Tatsuo Ishii
Subject: [HACKERS] pgaccess Japanese input capability patch From: Tatsuo Ishii <t-ishii@sra.co.jp> To: teo@flex.ro Cc: pgsql-hackers@postgresql.org, pgsql-interfaces@postgresql.org Date: Sat, 24 Feb 2001 21:41:14 +0900 Hi Teodorescu, I have made patches which enable pgaccess to input Japanese characters in the table editing window. As you might know, to input Japanese characters, we first type in "hiragana" then convert it to "kanji". To make this proccess transparent to tcl application programs, libraries are provided with localized version of Tcl/Tk. The patches bind certain keys to initiate a function (kanjiInput) that is responsible for the conversion process. If the function is not available, those keys will not be binded. Comments? -- Tatsuo Ishii
2001-02-26Implement COMMIT_SIBLINGS parameter to allow pre-commit delay to occurTom Lane
only if at least N other backends currently have open transactions. This is not a great deal of intelligence about whether a delay might be profitable ... but it beats no intelligence at all. Note that the default COMMIT_DELAY is still zero --- this new code does nothing unless that setting is changed. Also, mark ENABLEFSYNC as a system-wide setting. It's no longer safe to allow that to be set per-backend, since we may be relying on some other backend's fsync to have synced the WAL log.
2001-02-24At least on HPUX, select with delay.tv_sec = 0 and delay.tv_usec = 1000000Tom Lane
does not lead to a one-second delay, but to an immediate EINVAL failure. This causes CHECKPOINT to crash with s_lock_stuck much too quickly :-(. Fix by breaking down the requested wait div/mod 1e6.