- 26 May, 2005 3 commits
-
-
Neil Conway authored
working buffer into ParseDateTime() and reject too-long input there, rather than checking the length of the input string before calling ParseDateTime(). The old method was bogus because ParseDateTime() can use a variable amount of working space, depending on the content of the input string (e.g. how many fields need to be NUL terminated). This fixes a minor stack overrun -- I don't _think_ it's exploitable, although I won't claim to be an expert. Along the way, fix a bug reported by Mark Dilger: the working buffer allocated by interval_in() was too short, which resulted in rejecting some perfectly valid interval input values. I added a regression test for this fix.
-
Tom Lane authored
scanner anyway) to avoid having any backup states. According to the flex manual, this should speed things up, and indeed the backend scanner is about a third faster according to some quick profiling checks. I haven't tried to measure the speed change in psql, but it probably is similar.
-
Bruce Momjian authored
error. Pavel Stehule
-
- 25 May, 2005 4 commits
-
-
Bruce Momjian authored
using pg_mblen. Therefore, pg_mblen is executed many times, and it becomes a bottleneck. This patch makes a short cut, and reduces execution frequency of pg_mblen by comparing the first byte first. a_ogawa
-
Bruce Momjian authored
about adding an errant "TO" when we already have a TO. Since TO cannot be a valid column name (we must quote it), we can simply ignore the tab-completion if the previous word was a "TO". Greg Sabino Mullane
-
Bruce Momjian authored
them, the executation behavior could be unexpected.
-
Neil Conway authored
-
- 24 May, 2005 10 commits
-
-
Tom Lane authored
where there was also a WHERE-clause restriction that applied to the join. The check on restrictlist == NIL is really unnecessary anyway, because select_mergejoin_clauses already checked for and complained about any unmergejoinable join clauses. So just take it out.
-
Tom Lane authored
-
Tom Lane authored
Not sure why this hasn't been reported before; perhaps it is not needed with newer gcc versions, but it definitely fails here.
-
Tatsuo Ishii authored
if they are two-byte multibyte characters. Same thing can be happen if octet_length(multibyte_chars) == n where n is char(n). Long standing bug since 7.3 days. Per report and fix from Yoshiyuki Asaba.
-
Neil Conway authored
Andrew Dunstan.
-
Neil Conway authored
-
Bruce Momjian authored
Log prepare query during execute. Bruce Momjian
-
Bruce Momjian authored
-
Bruce Momjian authored
-
Neil Conway authored
error condition when executing some DDL. Per report from ITAGAKI Takahiro.
-
- 23 May, 2005 7 commits
-
-
Bruce Momjian authored
-
Bruce Momjian authored
#define SECS_PER_DAY 86400 #define USECS_PER_DAY INT64CONST(86400000000) #define USECS_PER_HOUR INT64CONST(3600000000) #define USECS_PER_MINUTE INT64CONST(60000000) #define USECS_PER_SEC INT64CONST(1000000)
-
Bruce Momjian authored
-
Tom Lane authored
that we acquire a lock on relations added to the query due to inheritance. Formerly, no such lock was held throughout planning, which meant that a schema change could occur to invalidate the plan before it's even been completed.
-
Neil Conway authored
sharing of %_SHARED. From Andrew Dunstan.
-
Neil Conway authored
to the entire table: as of current sources, they are no longer slow provided there is an index on the column.
-
Neil Conway authored
function descriptions in func.sgml; other minor SGML tweaks.
-
- 22 May, 2005 1 commit
-
-
Tom Lane authored
aren't doing anything useful (ie, neither selection nor projection). Also, extend to SubqueryScan the hacks already in place to avoid unnecessary ExecProject calls when the result would just be the same tuple the subquery already delivered. This saves some overhead in UNION and other set operations, as well as avoiding overhead for unflatten-able subqueries. Per example from Sokolov Yura.
-
- 21 May, 2005 5 commits
-
-
Bruce Momjian authored
< * Allow INET + INT4/INT8 to increment the host part of the address, or > * Allow INET + INT4 to increment the host part of the address, or
-
Neil Conway authored
methods in a short-lived memory context, there is no need for GiST methods to do their own manual (and error-prone) memory management.
-
Bruce Momjian authored
-
Bruce Momjian authored
< throw an error > throw an error on overflow
-
Bruce Momjian authored
> * Allow INET + INT4/INT8 to increment the host part of the address, or > throw an error
-
- 20 May, 2005 7 commits
-
-
Bruce Momjian authored
< < This will involve adding a way to respond to commit failure by either < taking the server into offline/readonly mode or notifying the < administrator
-
Bruce Momjian authored
Jun Kuwamura
-
Bruce Momjian authored
code to better handle writethrough. Chris Campbell
-
Neil Conway authored
-
Neil Conway authored
function definition for particular PLs. Original patch from David Fetter, editorializing by Neil Conway.
-
Neil Conway authored
with the syntax description in the CREATE RULE reference page. From Kris Jurka.
-
Neil Conway authored
from Abhijit Menon-Sen, minor editorialization from Neil Conway. Also, improve md5(text) to allocate a constant-sized buffer on the stack rather than via palloc. Catalog version bumped.
-
- 19 May, 2005 3 commits
-
-
Tom Lane authored
-
Tom Lane authored
-
Tom Lane authored
Also, remove the rather useless return value of LockReleaseAll. Change response to detection of corruption in the shared lock tables to PANIC, since that is the only way of cleaning up fully. Originally an idea of Heikki Linnakangas, variously hacked on by Alvaro Herrera and Tom Lane.
-