aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Fix win32.mak to support MULTIBYTE build --- it was pulling in severalTom Lane2001-08-03
| | | | | backend files that it shouldn't anymore, causing compile failures. Per report from Darko Prenosil.
* For some reason, CREATE TYPE has only accepted alignment specificationsTom Lane2001-08-03
| | | | | of 'int4' and 'double'. Add 'char' and 'int2' to allow user-defined types to access the full set of supported alignments.
* Fix pg_dump so that comments on views are dumped in the proper sequence.Tom Lane2001-08-03
| | | | | | | | | Dump the alignment and storage information for user-defined types (how'd that manage to slip through the cracks?), and don't dump 'shell' types that don't have typisdefined set. Fix badly broken logic for dependencies of type definitions (did not work for more than one user-defined type...). Avoid memory leakage within pg_dump by being more careful to release storage used by PQExpBuffer objects.
* Clean up various memory leaks within plpgsql, and re-enable theTom Lane2001-08-02
| | | | | | | | exec_eval_simple_expr shortcut, which was diked out in 7.1 because it leaked too much space. CVS tip now leaks no memory in Chris Ruprecht's example, which formerly leaked to the tune of 500 MB. (Much of this is work that Jan already did; this commit just cleans up around the edges.)
* Add a SPI_copytupledesc function that parallels SPI_copytuple --- ie,Tom Lane2001-08-02
| | | | | it copies the tupdesc into upper-executor memory. This is necessary for returning tuple descriptors without leaking all of lower exec memory.
* Tweak memory context sizing for saved SPI plans.Tom Lane2001-08-02
|
* Fix some poor decisions about sizing of trigger-related memory contexts.Tom Lane2001-08-02
|
* I noticed that pltcl didn't have any way to get to SPI_lastoid like plpgsql ↵Bruce Momjian2001-08-02
| | | | | | | | | | | | | | | | | does.. I started using pltcl a lot because I like to decide when and how my queries get planned.. so I put one together really quick Sorry I don't have the original around to make a quick diff, but its a very small change... I think this should be in the next release, there's no reason not to have it. its a function with no expected arguments, so you can use it like: spi_exec "INSERT INTO mytable(columns...) VALUES(values..)" set oid [spi_lastoid] spi_exec "SELECT mytable_id from mytable WHERE oid=$oid" It just didn't make sense for me to use plpgsql and pltcl, or just screw them both and use SPI from C. bob@redivi.com
* Even though SO_PEERCRED is probably totally unportable, might as wellTom Lane2001-08-02
| | | | | declare the getsockopt parameter as ACCEPT_TYPE_ARG3 to be consistent with our other uses of getsockopt.
* Remove SO_PASSCRED step in ident_unix --- according to Helge Bahmann,Tom Lane2001-08-02
| | | | | | that call is not needed to prepare for SO_PEERCRED. Also, simplify code so that #ifdef SO_PEERCRED appears in only one place, to make it easier to support other platforms with variants of this capability.
* Digging through previous discussion of this patch, I note where Peter E.Tom Lane2001-08-01
| | | | | | points out how silly it is to use Autoconf to test for a preprocessor symbol, when one can equally easily #ifdef on the symbol itself. Accordingly, revert configure to prior state and do it that way.
* Support ident authentication on local (Unix) socket connections, if theTom Lane2001-08-01
| | | | | | system supports SO_PEERCRED requests for Unix sockets. This is an amalgamation of patches submitted by Helge Bahmann and Oliver Elphick, with some editorializing by yours truly.
* Attached is a trivial patch to add ANALYZE to the tab complete file inBruce Momjian2001-08-01
| | | | | | psql. Randy Hall
* Attached ia a patch to enable window size detection code of psql for SolarisBruce Momjian2001-08-01
| | | | | | | | | | | | | | | platform. TIOCGWINSZ is defined as follows: Linux asm/ioctls.h FreeBSD sys/ttycom.h. This file is included by sys/ioctl.h. Solaris sys/termios.h This patch tells print.c to know TIOCGWINSZ on Solaris platform. Same code is founded in src/bin/psal/common.c. Kenji Sugita
* The fti.pl supplied with the fulltextindex module generate ALL possibleBruce Momjian2001-08-01
| | | | | | | | | | | | | | | substrings of two characters or greater, and is case-sensitive. This patch makes it work correctly. It generates only the suffixes of each word, plus lowercases them - as specified by the README file. This brings it into line with the fti.c function, makes it case-insensitive properly, removes the problem with duplicate rows being returned from an fti search and greatly reduces the size of the generated index table. It was written by my co-worker, Brett Toolin. Christopher Kings-Lynne
* Message typo was fixed in sources, but not in de.po.Tom Lane2001-08-01
|
* When invoked with -i (initialize mode), split the copy command everyTatsuo Ishii2001-08-01
| | | | | 10000 tuples, rather than one big copy. This will prevent generating too much WAL logs.
* Add mention of SIGHUP for pg_ident.conf.Bruce Momjian2001-08-01
|
* Add documentation changes for new pg_hba.conf behavior.Bruce Momjian2001-08-01
|
* Cleanup code for preparsing pg_hba.conf and pg_ident.conf. Store lineTom Lane2001-07-31
| | | | | | | | | number in the data structure so that we can give at least a minimally useful idea of where the mistake is when we issue syntax error messages. Move the ClientAuthentication() call to where it should have been in the first place, so that postmaster memory releasing can happen in a reasonable place also. Update obsolete comments, correct one real bug (auth_argument was not picked up correctly).
* Further thought shows that has_distinct_on_clause() needs to take muchTom Lane2001-07-31
| | | | | | | | more care with resjunk tlist entries than it was doing. The original coding ignored resjunk entries entirely, but a resjunk entry that is in either the distinctClause or sortClause lists indicates that DISTINCT ON was used. It's important for ruleutils.c to get this right, else we may dump views using DISTINCT ON incorrectly.
* Fix optimizer to not try to push WHERE clauses down into a sub-SELECT thatTom Lane2001-07-31
| | | | | | has a DISTINCT ON clause, per bug report from Anthony Wood. While at it, improve the DISTINCT-ON-clause recognizer routine to not be fooled by out- of-order DISTINCT lists.
* Update 'translate' function description. translate does character setBruce Momjian2001-07-31
| | | | mapping, not character strings.
* Update info on pg_hba.conf comments.Bruce Momjian2001-07-31
|
* Update TODO list.Bruce Momjian2001-07-31
|
* Remove WIN32_NON_BLOCKING_CONNECTIONS tests, since we don't need 'emTom Lane2001-07-31
| | | | anymore.
* Fix unportable coding for FRONTEND case.Tom Lane2001-07-31
|
* Change SQL commands embedded in the initdb script from the styleTom Lane2001-07-31
| | | | | | | | | | | | | | | echo "command" | postgres to the style postgres <<EOF command EOF This makes the script more legible (IMHO anyway) by reducing the need to escape quotes, and allows us to execute successive SQL commands in a single standalone-backend run, rather than needing to start a new standalone backend for each command. With all the CREATE VIEWs that are getting done now, this makes for a rather substantial reduction in the runtime of initdb. (Some of us do initdb often enough to care how long it runs ;-).)
* Update TODO list.Bruce Momjian2001-07-30
|
* Update TODO list.Bruce Momjian2001-07-30
|
* autoconfBruce Momjian2001-07-30
|
* Open Unix 8 patch (Caldera Unixware). Still needs updated autoconf.Bruce Momjian2001-07-30
| | | | Larry Rosenman
* XML conversion utility, requires expat library.Bruce Momjian2001-07-30
| | | | John Gray
* Patch to add comments to Linux startup script.Bruce Momjian2001-07-30
| | | | Rene Pijlman
* This patch merges the identical methods from the JDBC1 and JDBC2Bruce Momjian2001-07-30
| | | | | | | | | | | | connection implementations (org.postgresql.jdbc[1|2].Connection) into their superclass (org.postgresql.Connection). It also changes the close() methods of Connection and PG_Stream, so that PG_Stream no longer is responsible for sending the termination packet 'X' to the backend. I figured that protocol-level stuff like that belonged in Connection more than in PG_Stream. Anders Bengtsson
* Load pg_hba.conf and pg_ident.conf on startup and SIGHUP into List ofBruce Momjian2001-07-30
| | | | | | Lists, and use that for user validation. Bruce Momjian
* Arrange for GRANT/REVOKE on a view to be dumped at the right time,Tom Lane2001-07-29
| | | | | namely after the view definition rather than before it. Bug introduced in 7.1 by changes to dump stuff in OID ordering.
* Suppress gcc warning in USE_LOCALE case.Tom Lane2001-07-22
|
* Move EncodingTest.java file.Bruce Momjian2001-07-21
|
* DatabaseMetaData.getColumns() doesn't appear to get the defaultBruce Momjian2001-07-21
| | | | | | | value for each column. Here is a context diff of CVS which should fix it. Jason Davies
* Great, here is a context diff of CVS for implementing the get/setCatalog methodsBruce Momjian2001-07-21
| | | | | | | in Connection - note: I've updated setCatalog(String catalog) from my previous diff so it checks whether it is already connected to the specified catalog. Jason Davies
* JDBC encoding additions.Bruce Momjian2001-07-21
| | | | | | | Here's a patch against the current CVS. The changes from the previous patch are mostly related to the changed interface for PG_Stream. Anders Bengtsson
* Remove libpq TODO.detail. We don't need it any more because the item is done.Bruce Momjian2001-07-21
|
* Update TODO list.Bruce Momjian2001-07-21
|
* Update TODO list.Bruce Momjian2001-07-21
|
* I downloaded new source for lib (only few hours old !!!), and madeBruce Momjian2001-07-21
| | | | | | | | | | changes on this new source to make non-blocking connection work. I tested it, and PQSendQuery and PQGetResult are working fine. In win32.h I added one line: #define snprintf _snprintf Darko Prenosil
* Source formatting cleanup.Bruce Momjian2001-07-21
|
* Update TODO list.Bruce Momjian2001-07-20
|
* i've spotted a following problem using DBD::Pg under win32. winsockBruce Momjian2001-07-20
| | | | | | | | | functions do not set errno, so some normal conditions are treated as fatal errors. e.g. fetching large tuples fails, as at some point recv() returns EWOULDBLOCK. here's a patch, which replaces errno with WSAGetLastError(). i've tried to to affect non-win32 code. Dmitry Yurtaev
* Update TODO list.Bruce Momjian2001-07-20
|