- 06 Dec, 2002 3 commits
-
-
Bruce Momjian authored
ALTER DOMAIN .. SET / DROP DEFAULT ALTER DOMAIN .. ADD / DROP CONSTRAINT New files: - doc/src/sgml/ref/alter_domain.sgml Rod Taylor
-
Bruce Momjian authored
===================== I suggested an improvement of the inserttable in the PyGreSQL interface already in January, but seemingly it was never implemented. I was told this is the right place to get patches in for PyGreSQL, so I'm reposting my patch here. I consider the inserttable methode essential in populating the database because of its benefits in performance compared to insert, so I think this patch is quite essential. The attachment is an improved version of the corresponding pg_inserttable function in pgmodule.c, which fixes the following problems: * The function raised exceptions because PyList_GetItem was used beyond the size of the list. This was checked by comparing the result with NULL, but the exception was not cleaned up, which could result in mysterious errors in the following Python code. Instead of clearing the exception using PyErr_Clear or something like that, I avoided throwing the exception at all by at first requesting the size of the list. Using this opportunity, I also checked the uniformity of the size of the rows passed in the lists/tuples. The function also accepts (and silently ignores) empty lists and sublists. * Python "None" values are now accepted and properly converted to PostgreSQL NULL values * The function now generates an error message in case of a line buffer overflow * It copes with tabulators, newlines and backslashes in strings now * Rewrote the buffer filling code which should now run faster by avoiding unnecessary string copy operations forth and back Christoph Zwerschke
-
Bruce Momjian authored
Rod Taylor
-
- 05 Dec, 2002 12 commits
-
-
Bruce Momjian authored
cleaning up locale names and nothing else. Since all the locale names are in plain ASCII I think it will be safe to use ASCII-only lower-case conversion. Nicolai Tufar
-
Tom Lane authored
-
Tom Lane authored
problems that occur if sublink is referenced via a join alias variable. Perhaps this can be improved later, but a simple and safe fix is needed for 7.3.1.
-
Bruce Momjian authored
"SET search_path" commands were added to the beginning of the script. The attatched patch should fix the problem. It probably should be applied against the 7.3 and 7.4 branches. Steven Singer
-
Bruce Momjian authored
> * Add SQL99 WITH clause to SELECT (Tom, Fernando) > * Add SQL99 WITH RECURSIVE to SELECT (Tom, Fernando) 443a444 > * Fernando Nasser <fnasser@redhat.com>
-
Bruce Momjian authored
client-supplied password and which is from pg_shadow.
-
Bruce Momjian authored
report from Terry Yapt and Hiroshi. Backpatch to 7.3.
-
Tom Lane authored
to plan nodes, not vice-versa. All executor state nodes now inherit from struct PlanState. Copying of plan trees has been simplified by not storing a list of SubPlans in Plan nodes (eliminating duplicate links). The executor still needs such a list, but it can build it during ExecutorStart since it has to scan the plan tree anyway. No initdb forced since no stored-on-disk structures changed, but you will need a full recompile because of node-numbering changes.
-
Bruce Momjian authored
-
Bruce Momjian authored
-
Bruce Momjian authored
-
Dave Cramer authored
-
- 04 Dec, 2002 6 commits
-
-
Bruce Momjian authored
Shraibman.
-
Tom Lane authored
recursing to handle a join alias var, the context had better be set to be appropriate to the join var's query level. Per report from Hristo Neshev.
-
Bruce Momjian authored
> * Add ALTER SEQUENCE to modify min/max/increment/cache/cycle values
-
Bruce Momjian authored
-
D'Arcy J.M. Cain authored
that field so that existing programs don't break.
-
Bruce Momjian authored
Catalog patch from Alvaro Herrera for same. catversion updated. initdb required.
-
- 03 Dec, 2002 5 commits
-
-
Bruce Momjian authored
> * -Add OpenBSD's getpeereid() call for local socket authentication
-
Bruce Momjian authored
supported.
-
Bruce Momjian authored
-
Bruce Momjian authored
< * Add sql3 recursive unions > * Add SQL99 WITH clause to SELECT > * Add SQL99 WITH RECURSIVE to SELECT
-
Tom Lane authored
-
- 02 Dec, 2002 4 commits
-
-
Bruce Momjian authored
> * Python > o Allow users to register their own types with _pg > o Allow SELECT to return a dictionary of dictionaries > o Allow COPY BINARY FROM
-
Tom Lane authored
datconfig or useconfig field. Per report from Dustin Sallings.
-
Tom Lane authored
-
Tom Lane authored
-
- 01 Dec, 2002 6 commits
-
-
Bruce Momjian authored
< o Allow psql \copy to specify column names 199d197 < o Add SET REAL_FORMAT and SET DOUBLE_PRECISION_FORMAT using printf args
-
Bruce Momjian authored
> * -Inline simple SQL functions to avoid overhead (Tom)
-
Tom Lane authored
('SELECT expression') inline, like macros, during the constant-folding phase of planning. The actual expansion is not difficult, but checking that we're not changing the semantics of the call turns out to be more subtle than one might think; in particular must pay attention to permissions issues, strictness, and volatility.
-
Tom Lane authored
well as function calls. This is needed for cases where the planner has constant-folded or inlined the original function call. Possibly we should back-patch this change into 7.3 branch as well.
-
Tom Lane authored
report from Philip Warner.
-
Tom Lane authored
and eliminate its manual pfree() calls. This solves the encoding-conversion bug recently reported, and should be faster and more robust than the original coding anyway. For example, we are no longer at risk if datatype output routines leak memory or choose to return a constant string.
-
- 30 Nov, 2002 4 commits