- Jul 02, 2006
-
-
Bruce Momjian authored
ITAGAKI Takahiro
-
Bruce Momjian authored
Open items: There were a few tangentially related issues that have come up that I think are TODOs. I'm likely to tackle one or two of these next so I'm interested in hearing feedback on them as well. . Constraints currently do not know anything about inheritance. Tom suggested adding a coninhcount and conislocal like attributes have to track their inheritance status. . Foreign key constraints currently do not get copied to new children (and therefore my code doesn't verify them). I don't think it would be hard to add them and treat them like CHECK constraints. . No constraints at all are copied to tables defined with LIKE. That makes it hard to use LIKE to define new partitions. The standard defines LIKE and specifically says it does not copy constraints. But the standard already has an option called INCLUDING DEFAULTS; we could always define a non-standard extension LIKE table INCLUDING CONSTRAINTS that gives the user the option to request a copy including constraints. . Personally, I think the whole attislocal thing is bunk. The decision about whether to drop a column from children tables or not is something that should be up to the user and trying to DWIM based on whether there was ever a local definition or the column was acquired purely through inheritance is hardly ever going to match up with user expectations. . And of course there's the whole unique and primary key constraint issue. I think to get any traction at all on this you have a prerequisite of a real partitioned table implementation where the system knows what the partition key is so it can recognize when it's a leading part of an index key. Greg Stark
-
- Jun 29, 2006
-
-
Tom Lane authored
be delivered directly to the collector process. The extra process context swaps required to transfer data through the buffer process seem to outweigh any value the buffering might have. Per recent discussion and tests. I modified Bruce's draft patch to use poll() rather than select() where available (this makes a noticeable difference on my system), and fixed up the EXEC_BACKEND case.
-
Neil Conway authored
made as part of the recent INCLUDING CONSTRAINTS patch. The text could stand further improvement, but this is at least a step in the right direction.
-
- Jun 28, 2006
-
-
Bruce Momjian authored
for every command, default to on.
-
- Jun 27, 2006
-
-
Bruce Momjian authored
-
Bruce Momjian authored
Greg Stark
-
Bruce Momjian authored
Christopher Kings-Lynne
-
- Jun 26, 2006
-
-
Tom Lane authored
will be expanded to a list of their member fields, rather than creating a nested rowtype field as formerly. (The old behavior is still available by omitting '.*'.) This syntax is not allowed by the SQL spec AFAICS, so changing its behavior doesn't violate the spec. The new behavior is substantially more useful since it allows, for example, triggers to check for data changes with 'if row(new.*) is distinct from row(old.*)'. Per my recent proposal.
-
- Jun 19, 2006
- Jun 18, 2006
-
-
Peter Eisentraut authored
symlink is kept for now for compatibility. To call single-user mode, use postgres --single.
-
- Jun 17, 2006
-
-
Tom Lane authored
SQLSTATEs, fix some documentation problems.
-
Tom Lane authored
leading zeroes from the SQLSTATE codes. They're strings, people, not numbers.
-
Andrew Dunstan authored
docs for DROP ... IF EXISTS for the following cases: language, tablespace, trigger, rule, opclass, function, aggregate. operator, and cast.
-
Bruce Momjian authored
Backpatch documentation addition to 8.1.X.
-
- Jun 16, 2006
-
-
Bruce Momjian authored
Magnus Hagander
-
Bruce Momjian authored
-
Bruce Momjian authored
-
- Jun 15, 2006
-
-
Bruce Momjian authored
less than one row is returned by the SELECT, for Oracle PL/SQL compatibility. Improve SELECT INTO documentation. Matt Miller
-
Bruce Momjian authored
-
Bruce Momjian authored
non-PostgreSQL libraries cannot be loaded using this capability.
-
Bruce Momjian authored
description. Nis Jorgensen
-
- Jun 12, 2006
-
-
Bruce Momjian authored
Jaime Casanova
-
- Jun 06, 2006
-
-
Tom Lane authored
that the Mackert-Lohmann formula applies across all the repetitions of the nestloop, not just each scan independently. We use the M-L formula to estimate the number of pages fetched from the index as well as from the table; that isn't what it was designed for, but it seems reasonably applicable anyway. This makes large numbers of repetitions look much cheaper than before, which accords with many reports we've received of overestimation of the cost of a nestloop. Also, change the index access cost model to charge random_page_cost per index leaf page touched, while explicitly not counting anything for access to metapage or upper tree pages. This may all need tweaking after we get some field experience, but in simple tests it seems to be giving saner results than before. The main thing is to get the infrastructure in place to let cost_index() and amcostestimate functions take repeated scans into account at all. Per my recent proposal. Note: this patch changes pg_proc.h, but I did not force initdb because the changes are basically cosmetic --- the system does not look into pg_proc to decide how to call an index amcostestimate function, and there's no way to call such a function from SQL at all.
-
- Jun 05, 2006
-
-
Tom Lane authored
This shouldn't affect simple indexscans much, while for bitmap scans that are touching a lot of index rows, this seems to bring the estimates more in line with reality. Per recent discussion.
-
Tom Lane authored
assumed that a sequential page fetch has cost 1.0. This patch doesn't in itself change the system's behavior at all, but it opens the door to people adopting other units of measurement for EXPLAIN costs. Also, if we ever decide it's worth inventing per-tablespace access cost settings, this change provides a workable intellectual framework for that.
-
- Jun 03, 2006
-
-
Tom Lane authored
Per Larry Rosenman.
-
- Jun 01, 2006
-
-
Tom Lane authored
-
- May 31, 2006
-
-
Tom Lane authored
the server. Per discussion, there seems no point in a waiting period before making this required.
-
Bruce Momjian authored
-
Bruce Momjian authored
-
- May 30, 2006
-
-
Tom Lane authored
as this seems only likely to create headaches for module developers. Put the macro in the pre-existing fmgr.h file instead. Avoid being too cute about how many fields we can cram into a word, and avoid trying to fetch from a library we've already unlinked. Along the way, it occurred to me that the magic block really ought to be 'const' so it can be stored in the program text area. Do the same for the existing data blocks for PG_FUNCTION_INFO_V1 functions.
-
Bruce Momjian authored
It now only checks four things: Major version number (7.4 or 8.1 for example) NAMEDATALEN FUNC_MAX_ARGS INDEX_MAX_KEYS The three constants were chosen because: 1. We document them in the config page in the docs 2. We mark them as changable in pg_config_manual.h 3. Changing any of these will break some of the more popular modules: FUNC_MAX_ARGS changes fmgr interface, every module uses this NAMEDATALEN changes syscache interface, every PL as well as tsearch uses this INDEX_MAX_KEYS breaks tsearch and anything using GiST. Martijn van Oosterhout
-
Bruce Momjian authored
--------------------------------------------------------------------------- Add dynamic record inspection to PL/PgSQL, useful for generic triggers: tval2 := r.(cname); or columns := r.(*); Titus von Boxberg
-
Bruce Momjian authored
tval2 := r.(cname); or columns := r.(*); Titus von Boxberg
-
Bruce Momjian authored
-
Bruce Momjian authored
Joachim Wieland
-
Bruce Momjian authored
An article at WebProNews quoted from the PG docs as to the merits of stored procedures. I have added a bit more material on their merits, as well as making a few changes to improve the introductions to PL/Perl and PL/Tcl. Chris Browne
-