summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2002-08-22Since the plpgsql test has been part of the standard regression testsTom Lane
for a good long while, I see no reason to maintain this original copy.
2002-08-22Transpose info from src/pl/plpgsql/test/README into standard regression test ↵Tom Lane
file.
2002-08-22Remove all traces of the ODBC driver, which is now on GBorg as the psqlodbcMarc G. Fournier
project ...
2002-08-22Fix bit rot in pg_dump's ability to dump from 7.2 and 7.1 servers.Tom Lane
2002-08-22Fixed-size buffer in dumpClasses is not big enough anymore given theTom Lane
addition of a column list clause to the COPY command. Spotted by Martin Renters.
2002-08-22Code review for recent TRUNCATE changes. Tighten relation-kind check,Tom Lane
tighten foreign-key check (a self-reference should not prevent TRUNCATE), improve error message, cause a relation's TOAST table to be truncated along with the relation.
2002-08-22Commit updated repeat() patch, from Neil ConwayBruce Momjian
2002-08-22This patch should fix the problem. Doesn't include my previous patchBruce Momjian
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
2002-08-22repeat() fix:Bruce Momjian
> 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
2002-08-22# Disallow TRUNCATE on tables that are involved in referentialBruce Momjian
constraints The issue with finding and removing foreign key constraints is no longer an issue, so please apply the attached. It does NOT check for rules or on delete triggers (old style foreign keys) as those are difficult to deal with (remove, truncate, re-add). Rod Taylor
2002-08-22As suggested by Tom, this patch restricts the right-hand argument ofBruce Momjian
bytealike to TEXT. This leaves like_escape_bytea() without anything to do, but I left it in place in anticipation of the eventual bytea pattern selectivity functions. If there is agreement that this would be the best long term solution, I'll take it as a TODO for 7.4. Joe Conway
2002-08-22Oops, we got duplicate oids from patches again; pick a unique one.Bruce Momjian
2002-08-22Add:Bruce Momjian
replace(string, from, to) -- replaces all occurrences of "from" in "string" to "to" split(string, fldsep, column) -- splits "string" on "fldsep" and returns "column" number piece to_hex(int32_num) & to_hex(int64_num) -- takes integer number and returns as hex string Joe Conway
2002-08-22Remove erroneous character from Makefile due to editor error.Bruce Momjian
2002-08-22Okay, libpq++ is moved to GBorg, and all traces of it have been removedMarc G. Fournier
from the core repository ... I haven't *moved* the libpq++ files out of the tree, mainly as we want to keep them in place for past branches ... Peter, I think I've covered all the files I need, and re-ran autoconf to make sure the configure file is in place properly ...
2002-08-22Add a bunch of pseudo-types to replace the behavior formerly associatedTom Lane
with OPAQUE, as per recent pghackers discussion. I still want to do some more work on the 'cstring' pseudo-type, but I'm going to commit the bulk of the changes now before the tree starts shifting under me ...
2002-08-21Add --help and --version options. Message cleanup. NLS.Peter Eisentraut
2002-08-21Changes made so new conversion Makefiles will build out of the source tree.Bruce Momjian
2002-08-21Move PO files into subdirectories separate from the source code.Peter Eisentraut
2002-08-21Add sys/types.h to common includes.Peter Eisentraut
2002-08-20Use a non-duplicate OID for pg_lock_status.Tom Lane
2002-08-20Enable large file support.Peter Eisentraut
Use off_t and size_t in pg_dump to handle file offset arithmetic correctly.
2002-08-20Increase buffer size in cash_words(). Pure paranoia; I don't think theTom Lane
code is broken, but any small change in the output format might overrun the buffer with the old size.
2002-08-20Update expected files for recent changes of domain tests.Tom Lane
From Rod Taylor.
2002-08-20This patch improves the behavior of FOUND in PL/PgSQL. In Oracle,Bruce Momjian
FOUND is set whenever a SELECT INTO returns > 0 rows, *or* when an INSERT, UPDATE, or DELETE affects > 0 rows. We implemented the first part of this behavior, but not the second. I also improved the documentation on the various situations in which FOUND can be set (excluding inside FOR loops, which I still need to think about), and added some regression tests for this behavior. Neil Conway
2002-08-20- test for indexes on a domainBruce Momjian
- don't fail type-sanity checks if a domain exists Rod Taylor
2002-08-20Allow pg_statistics to be reset by calling pg_stat_reset().Bruce Momjian
Christopher Kings-Lynne
2002-08-20Add current_database().Bruce Momjian
> Quick system function to pull out the current database. > > I've used this a number of times to allow stored procedures to find out > where they are. Especially useful for those that do logging or hit a > remote server. > > It's called current_database() to match with current_user(). It's also a necessity for an informational schema. The catalog (database) name is required in a number of places. Rod Taylor
2002-08-20Removed code that is no longer used and has been commented outBarry Lind
for the last two releases. Modified Files: jdbc/org/postgresql/Driver.java.in jdbc/org/postgresql/PG_Stream.java Removed Files: jdbc/org/postgresql/core/BytePoolDim1.java jdbc/org/postgresql/core/BytePoolDim2.java jdbc/org/postgresql/core/MemoryPool.java jdbc/org/postgresql/core/ObjectPool.java jdbc/org/postgresql/core/SimpleObjectPool.java
2002-08-19Fix pg_dump to dump serial columns as serials. Per pghackers discussion,Tom Lane
cause SERIAL column declaration not to imply UNIQUE, so that this can be done without creating an extra index.
2002-08-19Remove Ident nodetype in favor of using String nodes; this fixes someTom Lane
latent wrong-struct-type bugs and makes the coding style more uniform, since the majority of places working with lists of column names were already using Strings not Idents. While at it, remove vestigial support for Stream node type, and otherwise-unreferenced nodes.h entries for T_TupleCount and T_BaseNode. NB: full recompile is recommended due to changes of Node type numbers. This shouldn't force an initdb though.
2002-08-19Fix bug in pg_convert() per report from MaC.Yui.Tatsuo Ishii
It pfree() wrong pointer.
2002-08-19Clean up leftover bugs from recent COPY feature patch --- missedTom Lane
required changes to copyfuncs/equalfuncs.
2002-08-19Add missing copyfuncs/equalfuncs entries, including T_Null which hasTom Lane
been missing forever; surprising it wasn't noticed before. The other additions are, um, sloppiness in certain recent feature additions.
2002-08-19Improve obsolete comment.Tom Lane
2002-08-18Fix small copy-and-pasteo.Tom Lane
2002-08-18Remove optimization whereby parser would make only one sort-list entryTom Lane
when two equal() targetlist items were to be added to an ORDER BY or DISTINCT list. Although indeed this would make sorting fractionally faster by sometimes saving a comparison, it confuses the heck out of later stages of processing, because it makes it look like the user wrote DISTINCT ON rather than DISTINCT. Bug reported by joe@piscitella.com.
2002-08-18Make CREATE CONSTRAINT TRIGGER check for REFERENCES privilege on bothPeter Eisentraut
master and slave tables.
2002-08-18Make pg_dump output more portable and more pleasing to look at.Peter Eisentraut
The -n and -N options were removed. Quoting is now smart enough to supply quotes if and only if necessary. Numerical types are now printed without quotes, except in cases of special values such as NaN. Boolean values printed as true and false. Most string literals now do not escape whitespace characters (newlines, etc.) for portability. SET SESSION AUTHORIZATION argument is a string literal, to follow SQL. Made commands output by pg_dump use consistent spacing and indentation.
2002-08-18Add #include <sys/time.h>.Tom Lane
2002-08-18Code review for 'at character n' patch --- point at proper end ofTom Lane
a token scanned by multiple lex rules.
2002-08-18Add db-local user names, per discussion on hackers.Bruce Momjian
2002-08-18More changes to match new error format.Bruce Momjian
2002-08-18Use variable for format to suppress overly-anal-retentive gcc warningTom Lane
about %c
2002-08-18Modify regression tests to match new error reporting format from Gavin.Bruce Momjian
2002-08-18Back out tcl patch, per Tom Lane:Bruce Momjian
Everytime if I do PQconsumeInput (when the backend channel gets readable) I check for the return value. (0 == error) and generate a notification manually, e.g. fixed string connection_closed) and pass it to the
2002-08-18Add includes for prototype using timeval.Bruce Momjian
2002-08-18Clean up compile warnings.Bruce Momjian
2002-08-17Reverse out XLogDir/-X write-ahead log handling, per discussion.Bruce Momjian
Original patch from Thomas.
2002-08-17Add lock file.Bruce Momjian