summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2001-09-30ISTM that IsUnderPostmaster should mean we are a child process of theTom Lane
postmaster ... it should not be set in the postmaster itself.
2001-09-30Create a GUC parameter max_files_per_process that is a configurableTom Lane
upper limit on what we will believe from sysconf(_SC_OPEN_MAX). The default value is 1000, so that under ordinary conditions it won't affect the behavior. But on platforms where the kernel promises far more than it can deliver, this can be used to prevent running out of file descriptors. See numerous past discussions, eg, pgsql-hackers around 23-Dec-2000.
2001-09-30Addition of xid=int4 operator makes opr_sanity unhappy.Tom Lane
2001-09-30winsock_strerror crashed on me. This fixes a line of code that looksTom Lane
cleverer than it actually is ;-) Braces are good for you :-) Gerhard HÃŒring
2001-09-30Add an operator xid '=' int and remove BINARY_COMPATI...Hiroshi Inoue
2001-09-30Back out change. Too many place to change too close to beta:Bruce Momjian
* HOLDER/HOLDERTAB rename to PROCLOCKLINK/PROCLOCKLINKTAG (Bruce) Will return later.
2001-09-29Tweak btree page split logic so that when splitting a page that isTom Lane
rightmost on its tree level, we split 2/3 to the left and 1/3 to the new right page, rather than the even split we use elsewhere. The idea is that when faced with a steadily increasing series of inserted keys (such as sequence or timestamp values), we'll end up with a btree that's about 2/3ds full not 1/2 full, which is much closer to the desired steady-state load for a btree. Per suggestion from Ann Harrison of IBPhoenix.
2001-09-29Allow comparison between xid and xid, int.Hiroshi Inoue
2001-09-29Do this TODO item:Bruce Momjian
* HOLDER/HOLDERTAB rename to PROCLOCK/PROCLOCKTAG (Tom) Didn't use PROCLOCKLINK because it made PROCLOCKLINKTAG too long.
2001-09-29Cope with the likelihood that setlocale and localeconv will returnTom Lane
pointers to data that will be changed by any later call to setlocale. Must copy what they return to be sure we get the right answer. Karel Zak, further tweaks by Tom Lane.
2001-09-29Fix the setlocale problem in a way that actually works. setlocaleTom Lane
returns a string corresponding to the new setting, not the old, therefore the previous patch was quite wrong.
2001-09-29Clean up comments.Tom Lane
2001-09-29Whoops, I was a tad too enthusiastic about using shared lock mode forTom Lane
SInvalLock. GetSnapshotData(true) has to use exclusive lock, since it sets MyProc->xmin.
2001-09-29Fixes for datetime-related regress tests, from Tom Lockhart.Tom Lane
2001-09-29Keep the contents of ItemPointerData not the pointers so thatHiroshi Inoue
per tuple memory context doesn't discard them.
2001-09-29timetz test was omitted from parallel_schedule.Tom Lane
2001-09-29Update horology-no-DST-before-1970.out for new horology test.Tom Lane
Still need an update for horology-solaris-1947.out ...
2001-09-29Implement new 'lightweight lock manager' that's intermediate betweenTom Lane
existing lock manager and spinlocks: it understands exclusive vs shared lock but has few other fancy features. Replace most uses of spinlocks with lightweight locks. All remaining uses of spinlocks have very short lock hold times (a few dozen instructions), so tweak spinlock backoff code to work efficiently given this assumption. All per my proposal on pghackers 26-Sep-01.
2001-09-29I have made three changes to the rtree code: one bug fix andBruce Momjian
two performance improvements. I put an explanation of the changes at http://cs1.cs.nyu.edu/been/postgres-rtree.html The performance improvements are quite significant. All the changes are in the file src/backend/access/rtree/rtree.c I was working with the 7.1.3 code. I'm including the diff output as an attachment. Kenneth Been
2001-09-29A couple of lines were missing from my last patch - this one fixes things.Bruce Momjian
Liam Stewart
2001-09-29This is a simple patch to put double quotes around a few cases inBruce Momjian
pg_ctl.sh which were unquoted when inside of []. Justin Clift
2001-09-29Per the recent discussion there's been some code changes in JDBC'sBruce Momjian
DatabaseMetaData.getColumn(). I proposed a patch that would change the number of queries to find out all columns in a table from 2 * N + 1 to 1 (N being the number of columns reported) by using some outer joins. I also fixed the fact that getColumns() only returned columns that had a default defined. OTOH, I did not use to change the code required for obtaining a column's remarks (by using col_description() for 7.2 and requested by Tom Lane). Finally, I have found a way to get all the column details in a single query *and* use col_description() for 7.2 servers. A patch is attached. It overrules Ren? Pijlman's fix for this that was committed just today, but still used N + 1 queries (sorry Ren? ;-) ) I also fixed the return values for TABLE_CAT and TABLE_SCHEM from "" to null, to be more standard compliant (and requested in Ren?'s mail found at http://fts.postgresql.org/db/mw/msg.html?mid=1034253). As always, the JDBC1 version has not been tested as I have no JDK 1.1 Jeroen van Vianen
2001-09-29Fix the bug about boolean type handling reported byHiroshi Inoue
Kristis Markis.
2001-09-28Improve wording.Bruce Momjian
2001-09-28Measure the current transaction time to milliseconds.Thomas G. Lockhart
Define a new function, GetCurrentTransactionStartTimeUsec() to get the time to this precision. Allow now() and timestamp 'now' to use this higher precision result so we now have fractional seconds in this "constant". Add timestamp without time zone type. Move previous timestamp type to timestamp with time zone. Accept another ISO variant for date/time values: yyyy-mm-ddThh:mm:ss (note the "T" separating the day from hours information). Remove 'current' from date/time types; convert to 'now' in input. Separate time and timetz regression tests. Separate timestamp and timestamptz regression test.
2001-09-28Add separate regression tests for timetz and the new timestamptz type.Thomas G. Lockhart
Modify the timestamp test to reflect the "no time zone" behavior of this new code; timestamptz resembles the old timestamp code.
2001-09-27Put MD5 salt at the end for security.Bruce Momjian
2001-09-27Move s_lock.c and spin.c into lmgr subdirectory, which seems a muchTom Lane
more reasonable location for them.
2001-09-27Remove useless LockDisable() function and associated overhead, per myTom Lane
proposal of 26-Aug.
2001-09-27Improve postgresql.conf descriptions.Bruce Momjian
2001-09-26The trailing semicolon in a plpgsql function definition is now optional.Tom Lane
Per gripe 9/26.
2001-09-26Repair oversight in recent changes to index-creation: tuple time qualTom Lane
check *can* return HEAPTUPLE_INSERT_IN_PROGRESS or HEAPTUPLE_DELETE_IN_PROGRESS, even though we have ShareLock on the relation. To wit, this can happen if the tuple was inserted/deleted by our own transaction. Per report from Justin Clift 9/23.
2001-09-26Remove useless test for time field in pg_control being > 0. We don'tTom Lane
need this, and it will create a Y2038 failure. Per report from David Wheeler, who is evidently running on a platform where time_t is already negative.
2001-09-26Add ALIGN() for cred packet, for OpenBSD.Bruce Momjian
2001-09-26Disable local creds on OpenBSD because it doesn't support it. DocumentBruce Momjian
supported platforms in pg_hba.conf.
2001-09-25 - Synced preproc.y with gram.y.Michael Meskes
- Changed locale handling.
2001-09-25Fix bug in mic2ascii(). It does not handle correctly if none ASCIITatsuo Ishii
chars are in the input.
2001-09-24Treat __s390x__ the same as __s390__. (taken from RPM patch set)Peter Eisentraut
2001-09-241) Fix compile errors on Windows.Hiroshi Inoue
2) Change *Common* --> *Default*.
2001-09-23Rename collect_* options to more user-friendly names.Peter Eisentraut
2001-09-23Don't refer to odbcinst.ini by absolute path. SQLGetPrivateProfileStringPeter Eisentraut
handles this. Don't install our own odbcinst.ini. That's the driver manager's business.
2001-09-23Make lpad/rpad/translate multibyte aware. Also add Copright notice etc.Tatsuo Ishii
2001-09-23Add pg_database_encoding_max_length() function.Tatsuo Ishii
2001-09-23Update regress tests for new LIMIT x,y behavior.Bruce Momjian
2001-09-23The attached patch is my first run-through of the JDBC test suite. ABruce Momjian
summary of changes: . removal of the tablename property from build.xml . addition of a dropTable method in JDBC2Tests and cleanups of many methods in the same . all tests now use non-deprecated assertXYZ methods instead of the deprecated assert method . failure in TimestampTest (testSetTimestamp) fixed. The failure is because testSetTimestamp was inserting a timestamp with hour 7 but checkTimeTest was expecting a timestamp with hour 8. AFAICS, there are no issues wrt daylight savings time and timestamps being pushed in and pulled out (but more explicit tests should be added in the future) . failure in TimeTest (testGetTime) fixed. Times to be inserted were interpreted in the localtime zone but checking was done with the assumption that the insertion was done in GMT. . formatting changes in a few of the source files (because I found it convenient to have consistent formatting while working on them). The formatting is consistent with the new format for java source files in PostgreSQL. Liam Stewart
2001-09-23Implement TODO item:Bruce Momjian
* Change LIMIT val,val to offset,limit to match MySQL Documentation updates too.
2001-09-22Provide some initial support for building the ODBC driver forPeter Eisentraut
an already installed iODBC or unixODBC driver manager. In particular, use the include files provided by the driver manager over our own, and use the odbcinst library of the driver manager rather than gpps.c. Migrate portability sections common to several files into psqlodbc.h.
2001-09-22Fix expected files.Tatsuo Ishii
2001-09-22Remove test driversTatsuo Ishii
Also fix comment in conv.c.
2001-09-22sbasename $0 is now basename "$0"Bruce Momjian