summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2003-07-22Fix to prevent SQL injection attacks when calling setObject(int,Object,int)Barry Lind
where the Object is a String and the type is numeric (i.e. INTEGER,LONG,etc). The fix applies the standard escaping for these values. Modified Files: Tag: REL7_3_STABLE jdbc/org/postgresql/Driver.java.in jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
2003-07-17Oh, for crying in a bucket ... relax Assert so that glibc's strxfrmTom Lane
does not dump core.
2003-07-17Work around buggy strxfrm() present in some Solaris releases.Tom Lane
2003-07-17For COMMENT ON DATABASE where database name is unknown or not the currentTom Lane
database, emit a WARNING and do nothing, rather than raising ERROR. Per recent discussion in which we concluded this is the best way to deal with database dumps that are reloaded into a database of a new name.
2003-07-17Repair boundary-case bug introduced by patch of two months ago thatTom Lane
fixed incorrect initial setting of StartUpID. The logic in XLogWrite() expects that Write->curridx is advanced to the next page as soon as LogwrtResult points to the end of the current page, but StartupXLOG() failed to make that happen when the old WAL ended exactly on a page boundary. Per trouble report from Hannu Krosing.
2003-07-14Fix a *second* buffer overrun bug in to_ascii(). Grumble.Tom Lane
2003-06-25Don't generate 'zero' typeids in the output from gen_cross_product.Tom Lane
This is no longer necessary or appropriate since we don't use zero typeid as a wildcard anymore, and it fixes a nasty performance problem with functions with many parameters. Per recent example from Reuven Lerner.
2003-06-25[ Backpatch to 7.3.X.]Bruce Momjian
If they're not, the below causes problems, as the foreign key is added after the CHECK. Cluster depends on the index name, so I thought it wise to ensure all names are available, rather than leaving off the CONSTRAINT "$n" portion for internally named constraints. CREATE TABLE jkey (col integer primary key); CREATE TABLE j (col integer REFERENCES jkey); ALTER TABLE j ADD CHECK(col > 5); This is a problem in 7.3 series as well as -Tip. -- Rod Taylor <rbt@rbt.ca>
2003-06-16Fix bugs in interval-to-time conversion: HAVE_INT64_TIMESTAMP case did notTom Lane
work at all, and neither case behaved sanely for negative intervals.
2003-06-12Fix SQL function executor for case where last command of a function isTom Lane
not a SELECT. We didn't use to allow that, but we do now.
2003-06-11Fix brain damage in deciding which python input converter to use.Tom Lane
2003-06-06Add defense in assign_session_authorization() against trying to doTom Lane
catalog lookups when not in a transaction. This prevents bizarre failures if someone tries to set a value for session_authorization in postgresql.conf. Per report from Fernando Nasser.
2003-05-22Brand 7.3.3.Tom Lane
2003-05-22Repair sometimes-incorrect computation of StartUpID after a crash, perTom Lane
example from Rao Kumar. This is a very corner corner-case, requiring a minimum of three closely-spaced database crashes and an unlucky positioning of the second recovery's checkpoint record before you'd notice any problem. But the consequences are dire enough that it's a must-fix.
2003-05-21Back-patch Jan's fix to avoid primary key lookup (and lock) if foreign keyTom Lane
does not change on UPDATE.
2003-05-19Use -fPIC on Sparc, per Tom Callaway.Tom Lane
2003-05-19Back-patch change to avoid O(N^2) behavior with lots of deferred triggers,Tom Lane
by making deferredTriggerInvokeEvents only scan events added since it last ran.
2003-05-19Upped JDBC build number to 110 for the 7.3.3 releaseBarry Lind
Modified Files: Tag: REL7_3_STABLE Driver.java.in
2003-05-18Small translation updates for 7.3.3 release.Peter Eisentraut
2003-05-16Back-patch fix to allow createuser to exit on control-C (Oliver Elphick)Tom Lane
2003-05-16Back-patch fix from Oliver Elphick to force ISO datestyle in dumps.Tom Lane
2003-05-16Small changes to use the absolute path to system catalogs.Tom Lane
Greg Sabino Mullane
2003-05-12Apply fixes for problems with dropped columns whose types have also beenTom Lane
dropped. Add regression test, too.
2003-05-10Adjust CreateCheckpoint so that buffer dumping activities and cleanup ofTom Lane
dead xlog segments are not considered part of a critical section. It is not necessary to force a database-wide panic if we get a failure in these operations. Per recent trouble reports.
2003-05-04Allow 60 in seconds fields of timestamp, time, interval input values.Tom Lane
Per recent discussion on pgsql-general, this is appropriate for spec compliance, and has the nice side-effect of easing porting from old pg_dump files that exhibit the 59.999=>60.000 roundoff problem.
2003-05-04When a TIMESTAMP, TIME, or INTERVAL precision is specified larger than ourTom Lane
implementation limits, do not issue an ERROR; instead issue a NOTICE and use the max supported value. Per pgsql-general discussion of 28-Apr, this is needed to allow easy porting from pre-7.3 releases where the limits were higher. Unrelated change in same area: accept GLOBAL TEMP/TEMPORARY as a synonym for TEMPORARY, as per pgsql-hackers discussion of 15-Apr. We previously rejected it, but that was based on a misreading of the spec --- SQL92's GLOBAL temp tables are really closer to what we have than their LOCAL ones.
2003-05-03Fix erroneous space calculation leading to core dump in dumpProcLangs,Tom Lane
per report from Olivier Prenant. Also fix off-by-one space calculation in ReadToc; this woould not have hurt us until we had more than 100 dependencies for a single object, but wrong is wrong.
2003-04-26Repair permissions problem in RI triggers: query parsing has to be doneTom Lane
as the correct user, not only query execution. Per report from Sean Chittenden.
2003-04-26Correct oversight in createlang: test for pre-existing handler functionTom Lane
was broken by opaque->language_handler change. I see this is already fixed in CVS tip, but must back-patch for 7.3.3.
2003-04-25Back-patch fixes for zero-column tables in COPY, pg_dump.Tom Lane
2003-04-25Make [VACUUM] ANALYZE safe on zero-column tables.Tom Lane
2003-04-23Fix misbehavior of func_error() on type names containing '%'.Tom Lane
Will patch separately but equivalently in HEAD.
2003-04-23Fix misbehavior of replace() on strings containing '%'.Tom Lane
Will patch separately but equivalently in HEAD.
2003-04-21Prevent palloc(0) error when parent table has zero columns.Tom Lane
2003-04-20Fix char-vs-pg_wchar confusion in p_ere(), per failure report fromTom Lane
Tom O'Dowd. This fix is not relevant to CVS tip anymore, but we should fix it in 7.3.*.
2003-04-17Fix abstime-to-time cast function, which has had broken implementationTom Lane
since 7.2, per bug #947. Turns out it had wrong volatility label, too. Can't force initdb in 7.3 branch, but fix anyway for future installs.
2003-04-17Applied patches from Kris Jurka fixing a string tokenizing problem andBarry Lind
fixing an order by problem for index metadata results. Also includes removing some unused code as well as a fix to the toString method on statement. Modified Files: Tag: REL7_3_STABLE jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
2003-04-16Fix stupid oversight ...Tom Lane
2003-04-15eqjoinsel's logic for case where MCV lists are not present shouldTom Lane
account for NULLs; in hindsight this is obvious since the code for the MCV-lists case would reduce to this when there are zero entries in both lists. Per example from Alec Mitchell.
2003-04-13Second try at avoiding conflicts with system isblank().Tom Lane
2003-04-12Guard against macro versions of isblank().Tom Lane
2003-04-12Fix encoding conversion function bug.Tatsuo Ishii
See following posting for more details. Subject: Re: [HACKERS] [BUGS] Bug #943: Server-Encoding from EUC_TW to UTF-8 doesn't From: Tatsuo Ishii <t-ishii@sra.co.jp> To: michael.enke@wincor-nixdorf.com, pgsql-bugs@postgresql.org Cc: pgsql-hackers@postgresql.org Date: Sat, 12 Apr 2003 10:51:45 +0900 (JST)
2003-04-10Fix error recovery for SSL_read/SSL_write calls.Tom Lane
2003-04-10Remove premature attempt to constant-fold type coercion expressions.Tom Lane
While usually safe, this fails if the coercion function needs the query snapshot to be set already. Per example from Nigel Andrews.
2003-04-08added addDataType to the interfaceDave Cramer
2003-04-04Back-patch changes to validate page header fields immediately afterTom Lane
reading in any page. Also back-port the zero_damaged_pages boolean that determines what to do about it.
2003-04-03Repair incorrect checking of grouped/ungrouped variables in the presenceTom Lane
of unnamed joins; per pghackers discussion 31-Mar-03.
2003-04-02Fix buffer overrun in to_ascii(), per report from Guido Notari.Tom Lane
2003-03-31TestConfiguration returns int, not bool. This mistake is relativelyTom Lane
harmless on signed-char machines but would lead to core dump in the deadlock detection code if char is unsigned. Amazingly, this bug has been here since 7.1 and yet wasn't reported till now. Thanks to Robert Bruccoleri for providing the opportunity to track it down.
2003-03-30Properly document default value of log_min_error_statement in postgresql.conf.Bruce Momjian