| Committer | Restructure plpgsql's caching of 'simple' expression evaluation trees to be less dangerous, and often faster as well. ExprState trees are not kept across transaction boundaries; this eliminates problems with resource leakage in failed transactions. But by keeping them in a per-transaction EState, we can safely arrange for a single ExprState to be shared by all the expression evaluations done in a given plpgsql function call. (Formerly it seemed necessary to create and destroy an ExprState for each exec_eval_simple_expr() call.) This saves time in any scenario where a plpgsql function executes more than one expression. Seems to be about as fast as 7.3 for simple cases, and significantly faster for functions that do a lot of calculations. 8b510838 | master7.4beta4REL_19_STABLE7.4beta4REL_18_STABLE7.4beta4REL_17_STABLE7.4beta4REL_16_STABLE7.4beta4REL_15_STABLE7.4beta4REL_14_STABLE7.4beta4REL_13_STABLE7.4beta4+21 more | No linked thread | Sep 28, 2003 |
| Committer | Add a mechanism to let dynamically loaded modules register post-commit/ post-abort cleanup hooks. I'm surprised that we have not needed this already, but I need it now to fix a plpgsql problem, and the usefulness for other dynamically loaded modules seems obvious. 89347900 | master7.4beta4REL_19_STABLE7.4beta4REL_18_STABLE7.4beta4REL_17_STABLE7.4beta4REL_16_STABLE7.4beta4REL_15_STABLE7.4beta4REL_14_STABLE7.4beta4REL_13_STABLE7.4beta4+21 more | No linked thread | Sep 28, 2003 |
| Committer | Now that we have UPDATE tab SET col = DEFAULT, get rid of horrid hack in the RI triggers for ON DELETE/UPDATE SET DEFAULT. The code depended way too much on knowledge of plan structure, and yet still would fail if the generated query got rewritten by rules. a15207f8 | master7.4beta4REL_19_STABLE7.4beta4REL_18_STABLE7.4beta4REL_17_STABLE7.4beta4REL_16_STABLE7.4beta4REL_15_STABLE7.4beta4REL_14_STABLE7.4beta4REL_13_STABLE7.4beta4+21 more | No linked thread | Sep 28, 2003 |
| Committer | Remove erroneous restriction that -t cannot be used to select a sequence for dumping. 0ac697b2 | master7.4beta4REL_19_STABLE7.4beta4REL_18_STABLE7.4beta4REL_17_STABLE7.4beta4REL_16_STABLE7.4beta4REL_15_STABLE7.4beta4REL_14_STABLE7.4beta4REL_13_STABLE7.4beta4+21 more | No linked thread | Sep 27, 2003 |
| Committer | Got the link order wrong :-( e0736689 | master7.4beta4REL_19_STABLE7.4beta4REL_18_STABLE7.4beta4REL_17_STABLE7.4beta4REL_16_STABLE7.4beta4REL_15_STABLE7.4beta4REL_14_STABLE7.4beta4REL_13_STABLE7.4beta4+21 more | No linked thread | Sep 27, 2003 |
| Committer | Adjust Darwin build to use the default 'two level namespace' linking method. Fix a number of places where shared libraries were linked without mentioning all the libraries they depend on; the Darwin and AIX ports are known to require this, and it doesn't seem to hurt any other supported platforms. (Hence, remove code in pl/tcl makefile that tried to avoid mentioning other libs if not needed.) cd75f94d | master7.4beta4REL_19_STABLE7.4beta4REL_18_STABLE7.4beta4REL_17_STABLE7.4beta4REL_16_STABLE7.4beta4REL_15_STABLE7.4beta4REL_14_STABLE7.4beta4REL_13_STABLE7.4beta4+21 more | No linked thread | Sep 27, 2003 |
| Committer | Fix typo in message. 4f7a2fa0 | master7.4beta4REL_19_STABLE7.4beta4REL_18_STABLE7.4beta4REL_17_STABLE7.4beta4REL_16_STABLE7.4beta4REL_15_STABLE7.4beta4REL_14_STABLE7.4beta4REL_13_STABLE7.4beta4+21 more | No linked thread | Sep 27, 2003 |
| Committer | Move -D_GNU_SOURCE hack from port header to template, so that configure's tests see the same compilation environment as the code. Per discussion with Stephan Szabo. 026f9c05 | master7.4beta4REL_19_STABLE7.4beta4REL_18_STABLE7.4beta4REL_17_STABLE7.4beta4REL_16_STABLE7.4beta4REL_15_STABLE7.4beta4REL_14_STABLE7.4beta4REL_13_STABLE7.4beta4+21 more | No linked thread | Sep 26, 2003 |
| Committer | Fix tid scan evaluation of non-constant TID values; can't try to do it during ExecInitTidScan, because the rest of the executor isn't ready. 8d108fb1 | master7.4beta4REL_19_STABLE7.4beta4REL_18_STABLE7.4beta4REL_17_STABLE7.4beta4REL_16_STABLE7.4beta4REL_15_STABLE7.4beta4REL_14_STABLE7.4beta4REL_13_STABLE7.4beta4+21 more | No linked thread | Sep 26, 2003 |
| Committer | Make the world safe (more or less) for dropped columns in plpgsql rowtypes. 2848dc5f | master7.4beta4REL_19_STABLE7.4beta4REL_18_STABLE7.4beta4REL_17_STABLE7.4beta4REL_16_STABLE7.4beta4REL_15_STABLE7.4beta4REL_14_STABLE7.4beta4REL_13_STABLE7.4beta4+21 more | No linked thread | Sep 25, 2003 |
| Committer | tlist_matches_tupdesc() needs to defend itself against dropped columns. a039148c | master7.4beta4REL_19_STABLE7.4beta4REL_18_STABLE7.4beta4REL_17_STABLE7.4beta4REL_16_STABLE7.4beta4REL_15_STABLE7.4beta4REL_14_STABLE7.4beta4REL_13_STABLE7.4beta4+21 more | No linked thread | Sep 25, 2003 |
| Committer | Get rid of ReferentialIntegritySnapshotOverride by extending Executor API to allow es_snapshot to be set to SnapshotNow rather than a query snapshot. This solves a bug reported by Wade Klaver, wherein triggers fired as a result of RI cascade updates could misbehave. c63a5452 | master7.4beta4REL_19_STABLE7.4beta4REL_18_STABLE7.4beta4REL_17_STABLE7.4beta4REL_16_STABLE7.4beta4REL_15_STABLE7.4beta4REL_14_STABLE7.4beta4REL_13_STABLE7.4beta4+21 more | No linked thread | Sep 25, 2003 |
| Committer | Fix regression error messages for platforms Peter doesn't use. 7ab5c5b8 | master7.4beta4REL_19_STABLE7.4beta4REL_18_STABLE7.4beta4REL_17_STABLE7.4beta4REL_16_STABLE7.4beta4REL_15_STABLE7.4beta4REL_14_STABLE7.4beta4REL_13_STABLE7.4beta4+21 more | No linked thread | Sep 25, 2003 |
| Committer | Fix grammatical error introduced into error message. d332f7f6 | master7.4beta4REL_19_STABLE7.4beta4REL_18_STABLE7.4beta4REL_17_STABLE7.4beta4REL_16_STABLE7.4beta4REL_15_STABLE7.4beta4REL_14_STABLE7.4beta4REL_13_STABLE7.4beta4+21 more | No linked thread | Sep 25, 2003 |
| Committer | Repair some REINDEX problems per recent discussions. The relcache is now able to cope with assigning new relfilenode values to nailed-in-cache indexes, so they can be reindexed using the fully crash-safe method. This leaves only shared system indexes as special cases. Remove the 'index deactivation' code, since it provides no useful protection in the shared- index case. Require reindexing of shared indexes to be done in standalone mode, but remove other restrictions on REINDEX. -P (IgnoreSystemIndexes) now prevents using indexes for lookups, but does not disable index updates. It is therefore safe to allow from PGOPTIONS. Upshot: reindexing system catalogs can be done without a standalone backend for all cases except shared catalogs. a56a016c | master7.4beta4REL_19_STABLE7.4beta4REL_18_STABLE7.4beta4REL_17_STABLE7.4beta4REL_16_STABLE7.4beta4REL_15_STABLE7.4beta4REL_14_STABLE7.4beta4REL_13_STABLE7.4beta4+21 more | No linked thread | Sep 24, 2003 |
| Committer | Add positive defense against dropped columns, per suggestion from Christopher Kings-Lynne. Also fix a couple more schema-awareness issues. 03858c07 | master7.4beta4REL_19_STABLE7.4beta4REL_18_STABLE7.4beta4REL_17_STABLE7.4beta4REL_16_STABLE7.4beta4REL_15_STABLE7.4beta4REL_14_STABLE7.4beta4REL_13_STABLE7.4beta4+21 more | No linked thread | Sep 24, 2003 |
| Committer | Issue CREATE SCHEMA as the originally connecting user, with an AUTHORIZATION clause to specify the desired owner. This allows a superuser to restore schemas owned by users without CREATE-SCHEMA permissions (ie, schemas originally created by a superuser using AUTHORIZATION). --no-owner can be specified to suppress the AUTHORIZATION clause if need be. a9e9abeb | master7.4beta4REL_19_STABLE7.4beta4REL_18_STABLE7.4beta4REL_17_STABLE7.4beta4REL_16_STABLE7.4beta4REL_15_STABLE7.4beta4REL_14_STABLE7.4beta4REL_13_STABLE7.4beta4+21 more | No linked thread | Sep 23, 2003 |
| Committer | pg_dump/pg_restore now always use SET SESSION AUTHORIZATION, not \connect, to control object ownership. The use-set-session-authorization and no-reconnect switches are obsolete (still accepted on the command line, but they don't do anything). This is a precursor to fixing handling of CREATE SCHEMA, which will be a separate commit. 6767cebc | master7.4beta4REL_19_STABLE7.4beta4REL_18_STABLE7.4beta4REL_17_STABLE7.4beta4REL_16_STABLE7.4beta4REL_15_STABLE7.4beta4REL_14_STABLE7.4beta4REL_13_STABLE7.4beta4+21 more | No linked thread | Sep 23, 2003 |
| Committer | Minor copy-editing for plpgsql chapter. aefc08e4 | master7.4beta4REL_19_STABLE7.4beta4REL_18_STABLE7.4beta4REL_17_STABLE7.4beta4REL_16_STABLE7.4beta4REL_15_STABLE7.4beta4REL_14_STABLE7.4beta4REL_13_STABLE7.4beta4+21 more | No linked thread | Sep 23, 2003 |
| Committer | Tweak generic_type_consistency routines to avoid loss of functionality since 7.3: 'select array_dims(histogram_bounds) from pg_stats' used to work and still should. Problem was that code wouldn't take input of declared type anyarray as matching an anyarray argument. Allow this case as long as we don't need to determine an element type (which in practice means as long as anyelement isn't used in the function signature). dbf8259a | master7.4beta4REL_19_STABLE7.4beta4REL_18_STABLE7.4beta4REL_17_STABLE7.4beta4REL_16_STABLE7.4beta4REL_15_STABLE7.4beta4REL_14_STABLE7.4beta4REL_13_STABLE7.4beta4+21 more | No linked thread | Sep 23, 2003 |
| CommitterBackported | _SPI_cursor_operation forgot to check for failure return from _SPI_begin_call. Per gripe from Tomasz Myrta. 267924ea | master7.4beta4REL_19_STABLE7.4beta4REL_18_STABLE7.4beta4REL_17_STABLE7.4beta4REL_16_STABLE7.4beta4REL_15_STABLE7.4beta4REL_14_STABLE7.4beta4REL_13_STABLE7.4beta4+22 more | No linked thread | Sep 23, 2003 |
| Committer | HeapTupleSatisfiesVacuum() needs to be more careful about the difference between INSERT_IN_PROGRESS and DELETE_IN_PROGRESS for tuples inserted and then deleted by a concurrent transaction. Example of bug: regression=# create table foo (f1 int); CREATE TABLE regression=# begin; BEGIN regression=# insert into foo values(1); INSERT 195531 1 regression=# delete from foo; DELETE 1 regression=# insert into foo values(1); INSERT 195532 1 regression=# create unique index fooi on foo(f1); ERROR: could not create unique index DETAIL: Table contains duplicated values. f03d2284 | master7.4beta4REL_19_STABLE7.4beta4REL_18_STABLE7.4beta4REL_17_STABLE7.4beta4REL_16_STABLE7.4beta4REL_15_STABLE7.4beta4REL_14_STABLE7.4beta4REL_13_STABLE7.4beta4+21 more | No linked thread | Sep 22, 2003 |