- Jul 04, 2006
-
-
Tom Lane authored
-
- 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
-
-
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 27, 2006
-
-
Bruce Momjian authored
Greg Stark
-
- Jun 18, 2006
-
-
Peter Eisentraut authored
symlink is kept for now for compatibility. To call single-user mode, use postgres --single.
-
- Jun 17, 2006
-
-
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 03, 2006
-
- Jun 01, 2006
-
-
Tom Lane authored
-
- May 31, 2006
-
-
Bruce Momjian authored
-
Bruce Momjian authored
-
- May 26, 2006
-
-
Tom Lane authored
during COPY OUT. Andreas Pflug, some editorialization by moi.
-
- May 13, 2006
-
-
Bruce Momjian authored
-
Bruce Momjian authored
-
- May 07, 2006
-
-
Bruce Momjian authored
custom format examples first.
-
- May 04, 2006
-
-
Tom Lane authored
The former approach used ExclusiveLock on pg_database, which being a cluster-wide lock meant only one of these operations could proceed at a time; worse, it also blocked all incoming connections in ReverifyMyDatabase. Now that we have LockSharedObject(), we can use locks of different types applied to databases considered as objects. This allows much more flexible management of the interlocking: two CREATE DATABASEs need not block each other, and need not block connections except to the template database being used. Similarly DROP DATABASE doesn't block unrelated operations. The locking used in flatfiles.c is also much narrower in scope than before. Per recent proposal.
-
- Apr 30, 2006
-
-
Tom Lane authored
CONNECTION, fix a number of places that were missed (eg pg_dump support), avoid executing an extra search of pg_database during startup.
-
Tom Lane authored
support both FOR UPDATE and FOR SHARE in one command, as well as both NOWAIT and normal WAIT behavior. The more general code is actually simpler and cleaner.
-
Bruce Momjian authored
Gevik Babakhani
-
- Apr 27, 2006
-
-
Bruce Momjian authored
CONSTRAINT, rather than affecting all constraints in all schemas (which is what we used to do). Also allow schema specifications. Kris Jurka
-
- Apr 26, 2006
-
-
Bruce Momjian authored
information, and add a -r option to reset pg_control without affecting xlog. yuanjia lee
-
- Apr 25, 2006
-
-
Bruce Momjian authored
-
Tom Lane authored
-
Bruce Momjian authored
-
Bruce Momjian authored
documentation sections. Also update SET/RESET to be consistent. Nicolas Barbier
-
Bruce Momjian authored
-
Bruce Momjian authored
Hans-J?rgen Sch?nig
-
- Apr 22, 2006
-
-
Bruce Momjian authored
patch separators in COPY. Backpatch doubleing backslashes suggestion to 8.1.
-
- Apr 15, 2006
-
-
Bruce Momjian authored
entire table load.
-
Tom Lane authored
CREATE AGGREGATE aggname (input_type) (parameter_list) along with the old syntax where the input type was named in the parameter list. This fits more naturally with the way that the aggregate is identified in DROP AGGREGATE and other utility commands; furthermore it has a natural extension to handle multiple-input aggregates, where the basetype-parameter method would get ugly. In fact, this commit fixes the grammar and all the utility commands to support multiple-input aggregates; but DefineAggregate rejects it because the executor isn't fixed yet. I didn't do anything about treating agg(*) as a zero-input aggregate instead of artificially making it a one-input aggregate, but that should be considered in combination with supporting multi-input aggregates.
-
- Apr 06, 2006
-
-
Tom Lane authored
that apply the necessary domain constraint checks immediately. This fixes cases where domain constraints went unchecked for statement parameters, PL function local variables and results, etc. We can also eliminate existing special cases for domains in places that had gotten it right, eg COPY. Also, allow domains over domains (base of a domain is another domain type). This almost worked before, but was disallowed because the original patch hadn't gotten it quite right.
-
- Apr 04, 2006
-
-
Tom Lane authored
functions are not strict, they will be called (passing a NULL first parameter) during any attempt to input a NULL value of their datatype. Currently, all our input functions are strict and so this commit does not change any behavior. However, this will make it possible to build domain input functions that centralize checking of domain constraints, thereby closing numerous holes in our domain support, as per previous discussion. While at it, I took the opportunity to introduce convenience functions InputFunctionCall, OutputFunctionCall, etc to use in code that calls I/O functions. This eliminates a lot of grotty-looking casts, but the main motivation is to make it easier to grep for these places if we ever need to touch them again.
-
- Apr 02, 2006
-
-
Neil Conway authored
to fix regressions introduced in the recent patch adding additional \connect options. This is based on work by Volkan YAZICI, although this version of the patch doesn't bear much resemblance to Volkan's version. \connect takes 4 optional arguments: database name, user name, host name, and port number. If any of those parameters are omitted or specified as "-", the value of that parameter from the previous connection is used instead; if there is no previous connection, the libpq default is used. Note that this behavior makes it impossible to reuse the libpq defaults without quitting psql and restarting it; I don't really see the use case for needing to do that.
-
Neil Conway authored
for REASSIGN OWNED and DROP OWNED.
-
Neil Conway authored
-
- Mar 17, 2006
-
-
Peter Eisentraut authored
worked and someone asked about them, so we might as well document them.
-
- Mar 08, 2006
-
-
Tom Lane authored
-
- Mar 03, 2006