summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2002-09-29Add Bear's SSL comments.Bruce Momjian
2002-09-28Make the world at least somewhat safe for zero-column tables, andTom Lane
remove the special case in ALTER DROP COLUMN to prohibit dropping a table's last column.
2002-09-27ARGH!Tom Lane
Vacuum must not advance pg_database.datvacuumxid nor truncate CLOG unless it's processed *all* tables in the database. Vacuums run by unprivileged users don't count. (Beats head against nearest convenient wall...)
2002-09-27> Fix clusterdb to be schema-awareBruce Momjian
Please apply the patch attached and this should be solved. Alvaro Herrera
2002-09-27Use heap_formtuple not heap_addheader to construct pg_index tuples.Tom Lane
heap_addheader is wrong because it doesn't cope with varlena fields, notably indpred.
2002-09-27Don't mess with HEAP_XMAX_INVALID in heaptuple.c routines; there isTom Lane
no reason to worry about the tuple commit status bits until the tuple is inserted in a relation by heapam.c. Also, improve comments for heap_addheader().
2002-09-27Have -d5 -d0 not affect the extra variables set with -d5.Bruce Momjian
2002-09-27Make postgres -d0 set server_min_messages to notice. Reset doesn't workBruce Momjian
at this area in the code.
2002-09-26Ensure that before truncating CLOG, we force a checkpoint even if noTom Lane
recent WAL activity has occurred. Without this, it's possible that a later crash might leave tuples on disk with un-updated commit status bits.
2002-09-26Fix problems with loss of tuple commit status bits during WAL redo ofTom Lane
VACUUM FULL tuple moves. Store full-width t_infomask in WAL, rather than storing low 8 bits and expecting to be able to reconstruct upper bits. While at it, remove redundant t_oid field from WAL headers (the OID, if present, is now recorded in the data portion of the tuple). WAL version number bumped --- this does not force an initdb, you can instead run pg_resetxlog after a clean shutdown of the old postmaster.
2002-09-26Back out /pl memory leak patch. Wait for new version.Bruce Momjian
2002-09-26Clean up SSL compiler warnings.Bruce Momjian
2002-09-26I have attached the pltcl patch again, just in case. For the sake of clarityBruce Momjian
let's say this patch superscedes the previous one. I have also attached a patch addressing the similar memory leak problem in plpython. This includes a slight adjustment of the tests in the source directory. The patch also includes a cosmetic change to remove a compiler warning although I think the change makes the code look worse though. BTW, by my reckoning the memory leak would occur with prepared plans and without. If that is not the case then I've been barking up the wrong tree. Nigel J. Andrews
2002-09-26This patch removes a use of uninitialized memory in lmgr/lock.c, byBruce Momjian
adding a missing sprintf(). Neil Conway
2002-09-26Pass postmaster -d down to the postgres backend to trigger special -dBruce Momjian
handling in the backend.
2002-09-26Allow SSL to work withouth client-side certificate infrastructure.Bruce Momjian
2002-09-25Remove ShutdownBufferPoolAccess exit callback, and do the work inTom Lane
ProcKill instead, where we still have a PGPROC with which to wait on LWLocks. This fixes 'can't wait without a PROC structure' failures occasionally seen during backend shutdown (I'm surprised they weren't more frequent, actually). Add an Assert() to LWLockAcquire to help catch any similar mistakes in future. Fix failure to update MyProcPid for standalone backends and pgstat processes.
2002-09-25Applied patch from Aaron Mulder (ammulder@alumni.princeton.edu) that fixesBarry Lind
jdbc datasource support for jdk1.4/jdbc3 Modified Files: jdbc/build.xml jdbc/org/postgresql/Driver.java.in jdbc/org/postgresql/jdbc2/optional/BaseDataSource.java jdbc/org/postgresql/jdbc2/optional/PGObjectFactory.java jdbc/org/postgresql/jdbc2/optional/PooledConnectionImpl.java jdbc/org/postgresql/jdbc2/optional/PoolingDataSource.java jdbc/org/postgresql/test/jdbc2/optional/BaseDataSourceTest.java jdbc/org/postgresql/test/jdbc2/optional/OptionalTestSuite.java jdbc/org/postgresql/test/jdbc3/Jdbc3TestSuite.java Added Files: jdbc/org/postgresql/jdbc3/Jdbc3ConnectionPool.java jdbc/org/postgresql/jdbc3/Jdbc3ObjectFactory.java jdbc/org/postgresql/jdbc3/Jdbc3PooledConnection.java jdbc/org/postgresql/jdbc3/Jdbc3PoolingDataSource.java jdbc/org/postgresql/jdbc3/Jdbc3SimpleDataSource.java jdbc/org/postgresql/test/jdbc2/optional/PoolingDataSourceTest.java jdbc/org/postgresql/test/jdbc3/Jdbc3ConnectionPoolTest.java jdbc/org/postgresql/test/jdbc3/Jdbc3PoolingDataSourceTest.java jdbc/org/postgresql/test/jdbc3/Jdbc3SimpleDataSourceTest.java jdbc/org/postgresql/test/util/MiniJndiContext.java jdbc/org/postgresql/test/util/MiniJndiContextFactory.java
2002-09-24Change default privileges for languages and functions to be PUBLIC USAGETom Lane
and PUBLIC EXECUTE, respectively. Per discussion about easing updates from prior versions.
2002-09-24Update some obsolete comments and column descriptions.Tom Lane
2002-09-24Remove useless O_DIROPEN stuff.Peter Eisentraut
2002-09-24Tweak conversion names to follow the established naming scheme, andPeter Eisentraut
document that scheme.
2002-09-24Add missing correction of sublevelsup when pulling up a subquery.Tom Lane
Fixes problem with cases like SELECT * FROM foo t WHERE NOT EXISTS (SELECT remoteid FROM (SELECT f1 as remoteid FROM foo WHERE f1 = t.f1) AS t1)
2002-09-23Further thinking about heap_mark4update: in HeapTupleSelfUpdated case,Tom Lane
executor should not return the tuple as successfully marked, because in fact it's been deleted. Not clear that this case has ever been seen in practice (I think you'd have to write a SELECT FOR UPDATE that calls a function that deletes some row the SELECT will visit later...) but we should be consistent. Also add comments to several other places that got it right but didn't explain what they were doing.
2002-09-23Move PyGreSQL usage documentation from README into DocBook. Some otherPeter Eisentraut
editing.
2002-09-23Disallow VACUUM, ANALYZE, TRUNCATE on temp tables belonging to otherTom Lane
backends. Given that temp tables now store data locally in the local buffer manager, these things are not going to work safely.
2002-09-23Obviously noone has ever tested the doubling of availiable result idsBruce Momjian
up to reaching the hard limit. After opening 16(=current REST_START value) results via pg_exec, the next pg_exec tries to find an empty slot forever :-( . In PgSetResultId file pgtclId.c in the for loop there has to be done a break, if res_max ist reached. The piece of code should look like if (resid == connid->res_max) { resid = 0; break; /* the break as to be added */ } now everything works (double available results after reaching RES_START up to reaching RES_HARD_MAX) Gerhard Hintermayer
2002-09-23Get rid of bogus use of heap_mark4update in reindex operations (cf.Tom Lane
recent bug report). Fix processing of nailed-in-cache indexes; it appears that REINDEX DATABASE has been broken for months :-(.
2002-09-22In UpdateStats(), don't bother to update the pg_class row if it alreadyTom Lane
contains the correct statistics. This is a partial solution for the problem of allowing concurrent CREATE INDEX commands: unless they commit at nearly the same instant, the second one will see the first one's pg_class updates as committed, and won't try to update again, thus avoiding the 'tuple concurrently updated' failure.
2002-09-22Remove commas for compatibility with newer releases of bison.Tom Lane
2002-09-22Remove commas for compatibility with newer bisons.Tom Lane
2002-09-22Remove commas from %type and %token lists, for compatibility with newerTom Lane
versions of bison.
2002-09-22Translation updates, some messages tweaked.Peter Eisentraut
2002-09-22RelationClearRelation must reset rd_targblock and update rd_nblocksTom Lane
even when dealing with a nailed-in-cache relation; otherwise, following VACUUM truncation of a system catalog, other backends might have unreasonably large values of these fields.
2002-09-22Make \dS work more like it used to, viz, show only system objects.Tom Lane
2002-09-22server_min_messages and friends should have valid values at bootup.Tom Lane
2002-09-22Replace pg_attribute.attisinherited with attislocal and attinhcountTom Lane
columns, to allow more correct behavior in multiple-inheritance cases. Patch by Alvaro Herrera, review by Tom Lane.
2002-09-22Bring SIMILAR TO and SUBSTRING into some semblance of conformance withTom Lane
the SQL99 standard. (I'm not sure that the character-class features are quite right, but that can be fixed later.) Document SQL99 and POSIX regexps as being different features; provide variants of SUBSTRING for each.
2002-09-22Move most of the error checking for foreign-key constraints out ofTom Lane
parse analysis and into the execution code (in tablecmds.c). This eliminates a lot of unreasonably complex code that needed to have two or more execution paths in case it was dealing with a not-yet-created table column vs. an already-existing one. The execution code is always dealing with already-created tables and so needs only one case. This also eliminates some potential race conditions (the table wasn't locked between parse analysis and execution), makes it easy to fix the gripe about wrong referenced-column names generating a misleading error message, and lets us easily add a dependency from the foreign-key constraint to the unique index that it requires the referenced table to have. (Cf. complaint from Kris Jurka 12-Sep-2002 on pgsql-bugs.) Also, third try at building a deletion mechanism that is not sensitive to the order in which pg_depend entries are visited. Adding the above- mentioned dependency exposed the folly of what dependency.c had been doing: it failed for cases where B depends on C while both auto-depend on A. Dropping A should succeed in this case, but was failing if C happened to be visited before B. It appears the only solution is two separate walks over the dependency tree.
2002-09-21Add last-ditch defense against attempts to compile datetime code withTom Lane
-ffast-math.
2002-09-21Provide an upgrade strategy for dump files containing functions declaredTom Lane
with OPAQUE. CREATE LANGUAGE, CREATE TRIGGER, and CREATE TYPE will all accept references to functions declared with OPAQUE --- but they will issue a NOTICE, and will modify the function entries in pg_proc to have the preferred type-safe argument or result types instead of OPAQUE. Per recent pghackers discussions.
2002-09-21Fix PPC s_lock operations to work correctly on multi-CPU machines.Tom Lane
Need 'isync' during TAS and 'sync' during S_UNLOCK.
2002-09-20Performance improvement for MultiRecordFreeSpace on large relations ---Tom Lane
avoid O(N^2) behavior. Problem noted and fixed by Stephen Marshall <smarshall@wsicorp.com>, with some help from Tom Lane.
2002-09-20Code review for check-domain-constraints-in-COPY patch. Do correct thingTom Lane
when default expression for a domain is being used. Avoid repetitive catalog lookups.
2002-09-20Update regression expected results for to_char() change.Tom Lane
2002-09-20Change domain patch to COERCE_IMPLICIT_CAST, per Tom.Bruce Momjian
2002-09-20Fix compile error from Rod's patch.Bruce Momjian
2002-09-20The patch fix bug described in TODO:Bruce Momjian
* to_char(0,'FM999.99') returns a period, to_char(1,'FM999.99') does not Karel Zak
2002-09-20Tom Lane wrote:Bruce Momjian
> I see in your recent bytea-LIKE patch > > if (datatype != BYTEAOID && pg_database_encoding_max_length() > 1) > len = pg_mbcliplen((const unsigned char *) workstr, len, len - 1); > else > len -= -1; > > Surely there's one too many minus signs in that last? Joe Conway
2002-09-20This patch cleans up some of the code in src/util/adt/formatting.c,Bruce Momjian
fixes a few minor bugs (typos, potential buffer overruns, etc.), and fixes some spelling/grammar mistakes. Neil Conway