summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2003-08-24Fix bug in GB18030 conversion scriptTatsuo Ishii
2003-08-22Sigh, I'm an idiot ... SSL_ERROR_WANT_READ isn't an error conditionTom Lane
at all, it just means 'no data available yet'.
2003-08-08Conversion functions must be STRICT to prevent them from getting null inputs.Tom Lane
2003-08-07Backport to 7.3. Third try to fix the sql injectionBarry Lind
vulnerability. This fix completely removes the ability (hack) of being able to bind a list of values in an in clause. It was demonstrated that by allowing that functionality you open up the possibility for certain types of sql injection attacks. The previous fix attempts all focused on preventing the insertion of additional sql statements (the semi-colon problem: xxx; any new sql statement here). But that still left the ability to change the where clause on the current statement or perform a subselect which can circumvent applicaiton security logic and/or allow you to call any stored function. Modified Files: Tag: REL7_3_STABLE jdbc/org/postgresql/Driver.java.in jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
2003-08-05Fix several places where fractional-second inputs were misprocessedTom Lane
in HAVE_INT64_TIMESTAMP cases, including two potential stack smashes when more than six fractional digits were supplied. Per bug report from Philipp Reisner.
2003-08-04SSL_read/SSL_write do not approximate the return conventions of recv()Tom Lane
and send() very well at all; and in any case we can't use retval==0 for EOF due to race conditions. Make the same fixes in the backend as are required in libpq.
2003-08-04Fix some more problems with testing error returns from SSL.Tom Lane
2003-07-29Fix longstanding error in _bt_search(): should moveright at top of loop notTom Lane
bottom. Otherwise we fail to moveright when the root page was split while we were "in flight" to it. This is not a significant problem when the root is above the leaf level, but if the root was also a leaf (ie, a single-page index just got split) we may return the wrong leaf page to the caller, resulting in failure to find a key that is in fact present. Bug has existed at least since 7.1, probably forever.
2003-07-24Fix timestamp_date for HAVE_INT64_TIMESTAMP case.REL7_3_4Tom Lane
2003-07-24Repair 7.3 breakage in timestamp-to-date conversion for dates before 2000.Tom Lane
2003-07-23Patch to fix additional SQL injection vulnerabilities reported by Oliver JowettBarry Lind
and Dmitry Tkach Modified Files: Tag: REL7_3_STABLE jdbc/org/postgresql/Driver.java.in jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
2003-07-23Stamp 7.3.4 release.Bruce Momjian
2003-07-22wups, took out one memset too many ...Tom Lane
2003-07-22Back-patch fix for bugs in pgstat_initstats.Tom Lane
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.