summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2002-08-27The attached patch implements the password packet length sanity checkBruce Momjian
(using an elog(LOG) ), as well as includes a few more comment fixes. Neil Conway
2002-08-27Add most of Neil Conway's cleanups.Bruce Momjian
2002-08-27More connection timeout cleanups.Bruce Momjian
2002-08-27Cleanup of libpq connection timeout code.Bruce Momjian
2002-08-27Add fsm sizes.Bruce Momjian
2002-08-27PREPARE/EXECUTE statements. Patch by Neil Conway, some kibitzingTom Lane
from Tom Lane.
2002-08-27This patch updates the lock listing code to use Joe Conway's newBruce Momjian
anonymous return type SRF code. It gets rid of the superflous 'pg_locks_result' that Bruce/Tom had commented on. Otherwise, no changes in functionality. Neil Conway
2002-08-27This is a 2 line patch to src/interfaces/perl5/GNUMakefile that fixesBruce Momjian
the 'override CPPFLAGS' to include the source directory during compile, and makes the install target look in the proper place for the man page. Changes are only required when building outside the source directory. J. R. Nield
2002-08-27This patches replaces a few more usages of strcpy() and sprintf() whenBruce Momjian
copying into a fixed-size buffer (in this case, a buffer of NAMEDATALEN bytes). AFAICT nothing to worry about here, but worth fixing anyway... Neil Conway
2002-08-27I attach a little patch to make CLUSTER set and reset the indisclusteredBruce Momjian
bit on the indexes. I also attach clusterdb and clusterdb.sgml; both of them are blatant rips of vacuumdb and vacuumdb.sgml, but get the job done. Please review them, as I'm probably making a lot of mistakes with SGML and I can't compile it here. vacuumdb itself is not very comfortable to use when the databases have passwords, because it has to connect once for each table (I can probably make it connect only once for each database; should I?). Because of this I added a mention of PGPASSWORDFILE in the documentation, but I don't know if that is the correct place for that. Alvaro Herrera
2002-08-27Add to skip list in check_gucBruce Momjian
2002-08-27Comment cleanup.Bruce Momjian
2002-08-27Script cleanups.Bruce Momjian
2002-08-27Clean up script.Bruce Momjian
2002-08-27Add check_guc utility to compare guc.c and postgresql.conf.sample.Bruce Momjian
2002-08-27Fix units in postgresql.conf.Bruce Momjian
2002-08-26Add units to postgresql.conf file.Bruce Momjian
2002-08-26Increase WIDTH_THRESHOLD from 256 to 1K. This addresses recent observationTom Lane
that ANALYZE would not gather any stats for a CHAR(255) column. I still think a width threshold is appropriate for the reasons mentioned in the code, but we can loosen it at least.
2002-08-26Modify array operations to include array's element type OID in theTom Lane
array header, and to compute sizing and alignment of array elements the same way normal tuple access operations do --- viz, using the tupmacs.h macros att_addlength and att_align. This makes the world safe for arrays of cstrings or intervals, and should make it much easier to write array-type-polymorphic functions; as examples see the cleanups of array_out and contrib/array_iterator. By Joe Conway and Tom Lane.
2002-08-25Add Bob Devine's name to the optimizer README.Bruce Momjian
2002-08-25Clean up comments to be careful about the distinction between variable-Tom Lane
width types and varlena types, since with the introduction of CSTRING as a more-or-less-real type, these concepts aren't identical. I've tried to use varlena consistently to denote datatypes with typlen = -1, ie, they have a length word and are potentially TOASTable; while the term variable width covers both varlena and cstring (and, perhaps, someday other types with other rules for computing the actual width). No code changes in this commit except for renaming a couple macros.
2002-08-24The cstring datatype can now be copied, passed around, etc. The typlenTom Lane
value '-2' is used to indicate a variable-width type whose width is computed as strlen(datum)+1. Everything that looks at typlen is updated except for array support, which Joe Conway is working on; at the moment it wouldn't work to try to create an array of cstring.
2002-08-23Enhancements to how queries with bind values are stored internally and sent toBarry Lind
the server. Previously we allocated a new String object for the entire final query we were sending to the database. If you had a big query, or especially if you had large bind values you ended up with essentially two copies in memory. This change will reuse the existing objects and therefore should take 1/2 the memory it does today for a given query. This restructuring will also allow in the future the ability to stream bytea data to the server instead of the current approach of pulling it all into memory. I also fixed a test that was failing on a 7.2 database. Also renamed some internal variables and some minor cleanup. Modified Files: jdbc/org/postgresql/core/QueryExecutor.java jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java jdbc/org/postgresql/test/jdbc2/DatabaseMetaDataTest.java
2002-08-23Further cleanup around the edges of OPAQUE/pseudotype changes. CorrectTom Lane
the declarations of some index access method support functions. Support SQL functions returning VOID.
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