- Nov 15, 2007
-
-
Bruce Momjian authored
-
- Sep 22, 2007
- Sep 18, 2007
-
-
Andrew Dunstan authored
database via builtin functions, as recently discussed on -hackers. chr() now returns a character in the database encoding. For UTF8 encoded databases the argument is treated as a Unicode code point. For other multi-byte encodings the argument must designate a strict ascii character, or an error is raised, as is also the case if the argument is 0. ascii() is adjusted so that it remains the inverse of chr(). The two argument form of convert() is gone, and the three argument form now takes a bytea first argument and returns a bytea. To cover this loss three new functions are introduced: . convert_from(bytea, name) returns text - converts the first argument from the named encoding to the database encoding . convert_to(text, name) returns bytea - converts the first argument from the database encoding to the named encoding . length(bytea, name) returns int - gives the length of the first argument in characters in the named encoding
-
- Feb 28, 2007
-
-
Tom Lane authored
Get rid of VARATT_SIZE and VARATT_DATA, which were simply redundant with VARSIZE and VARDATA, and as a consequence almost no code was using the longer names. Rename the length fields of struct varlena and various derived structures to catch anyplace that was accessing them directly; and clean up various places so caught. In itself this patch doesn't change any behavior at all, but it is necessary infrastructure if we hope to play any games with the representation of varlena headers. Greg Stark and Tom Lane
-
- Feb 08, 2007
-
-
Bruce Momjian authored
trnasformed to lower or upper string. Pavel Stehule
-
- Jan 05, 2007
-
-
Bruce Momjian authored
back-stamped for this.
-
- Jul 14, 2006
-
-
Tom Lane authored
-
Bruce Momjian authored
-
- Mar 05, 2006
-
-
Bruce Momjian authored
-
- Nov 04, 2005
-
-
Peter Eisentraut authored
-
- Oct 29, 2005
-
-
Peter Eisentraut authored
-
- Oct 15, 2005
-
-
Bruce Momjian authored
-
- Aug 24, 2005
-
-
Tom Lane authored
is not adequately tested yet, but let's get it into beta1 so it can be tested. Magnus Hagander and Tom Lane.
-
- May 07, 2005
-
-
Bruce Momjian authored
-
- Mar 16, 2005
-
-
Bruce Momjian authored
Per Neil.
-
Bruce Momjian authored
locale is C. Backpatch to 8.0.X because some operating systems were throwing errors for such operations, rather than ignoring the locale when it was C.
-
- Dec 31, 2004
-
-
PostgreSQL Daemon authored
Tag appropriate files for rc3 Also performed an initial run through of upgrading our Copyright date to extend to 2005 ... first run here was very simple ... change everything where: grep 1996-2004 && the word 'Copyright' ... scanned through the generated list with 'less' first, and after, to make sure that I only picked up the right entries ...
-
- Oct 19, 2004
-
-
Tom Lane authored
-
- Aug 29, 2004
-
-
Bruce Momjian authored
-
Bruce Momjian authored
-
- Jun 07, 2004
-
-
Tom Lane authored
code if we are running in a single-byte encoding. No point in the extra overhead in that case.
-
- May 26, 2004
-
-
Tom Lane authored
-
- May 22, 2004
-
-
Tom Lane authored
functions. This allows these functions to work correctly with Unicode and other multibyte encodings. Per prior discussion. Also, revert my earlier change to move installation path mashing from Makefile.global to configure. Turns out not to work well because configure script is working with unexpanded variables, and so fails to match in cases where it should match.
-
- Feb 27, 2004
-
-
Neil Conway authored
comments, make some unrelated improvements to the functions documentation, and perform some minor consistency cleanup elsewhere. Original initcap() change from Dennis B., additional changes by Neil C.
-
- Nov 29, 2003
-
-
PostgreSQL Daemon authored
$Header: -> $PostgreSQL Changes ...
-
- Aug 08, 2003
-
-
Bruce Momjian authored
-
- Aug 04, 2003
-
-
Bruce Momjian authored
-
- Jul 27, 2003
-
-
Tom Lane authored
the bulk of the heavy lifting ...
-
Bruce Momjian authored
tested on both redhat 8 and FreebSD. -- Mike Nolan
-
- May 24, 2003
-
-
Tom Lane authored
single-byte encodings, and a direct C implementation of the single-argument forms (where spaces are always what gets trimmed). This is in preparation for using rtrim1() as the bpchar-to-text cast operator, but is a useful performance improvement even if we decide not to do that.
-
- Sep 04, 2002
-
-
Bruce Momjian authored
-
- Aug 29, 2002
-
-
Tatsuo Ishii authored
-
- Aug 22, 2002
-
-
Bruce Momjian authored
-
Bruce Momjian authored
for repeat(). Again, somewhat off-the-cuff, so I might have missed something... test=# select lpad('xxxxx',1431655765,'yyyyyyyyyyyyyyyy'); ERROR: Requested length too large test=# select rpad('xxxxx',1431655765,'yyyyyyyyyyyyyyyy'); ERROR: Requested length too large (That's on a Unicode DB, haven't tested other encodings but AFAICT this fix should still work.) Neil Conway
-
Bruce Momjian authored
> Neil Conway <neilc@samurai.com> writes: > > + /* Check for integer overflow */ > > + if (tlen / slen != count) > > + elog(ERROR, "Requested buffer is too large."); > > What about slen == 0? Good point -- that wouldn't cause incorrect results or a security problem, but it would reject input that we should really accept. Revised patch is attached. Neil Conway
-
- Jun 20, 2002
-
-
Bruce Momjian authored
-
- Jan 08, 2002
-
-
Tom Lane authored
multibyte encodings.
-
- Oct 25, 2001
-
-
Bruce Momjian authored
tests pass.
-
- Sep 23, 2001
-
-
Tatsuo Ishii authored
-