- Jan 20, 2012
-
-
Robert Haas authored
Kevin Grittner, reviewed (in earlier versions) by Álvaro Herrera
-
Robert Haas authored
Text by Peter Geoghegan.
-
- Jan 19, 2012
-
-
Robert Haas authored
Brendan Jurd, reviewed by Fujii Masao
-
Magnus Hagander authored
This separates the state (running/idle/idleintransaction etc) into it's own field ("state"), and leaves the query field containing just query text. The query text will now mean "current query" when a query is running and "last query" in other states. Accordingly,the field has been renamed from current_query to query. Since backwards compatibility was broken anyway to make that, the procpid field has also been renamed to pid - along with the same field in pg_stat_replication for consistency. Scott Mead and Magnus Hagander, review work from Greg Smith
-
Heikki Linnakangas authored
That avoids errors when the functions are used in queries like "SELECT pg_relation_size(oid) FROM pg_class", and a table is dropped concurrently. Phil Sorber
-
- Jan 18, 2012
-
-
Peter Eisentraut authored
Change the usesavedplan() example to use a more modern Python style using the .setdefault() function.
-
- Jan 16, 2012
-
-
Alvaro Herrera authored
When creating a child table, or when attaching an existing table as child of another, we must not allow inheritable constraints to be merged with non-inheritable ones, because then grandchildren would not properly get the constraint. This would violate the grandparent's expectations. Bugs noted by Robert Haas. Author: Nikhil Sontakke
-
- Jan 15, 2012
-
-
Magnus Hagander authored
Allows a user to use pg_cancel_queries() to cancel queries in other backends if they are running under the same role. pg_terminate_backend() still requires superuser permissoins. Short patch, many authors working on the bikeshed: Magnus Hagander, Josh Kupershmidt, Edward Muller, Greg Smith.
-
- Jan 14, 2012
-
-
Heikki Linnakangas authored
superuser doesn't have doesn't make much sense, as a superuser can do whatever he wants through other means, anyway. So instead of granting replication privilege to superusers in CREATE USER time by default, allow replication connection from superusers whether or not they have the replication privilege. Patch by Noah Misch, per discussion on bug report #6264
-
- Jan 10, 2012
-
-
Peter Eisentraut authored
Composite types are not yet supported, because parserOpenTable() rejects them.
-
- Jan 09, 2012
-
-
Peter Eisentraut authored
Point out in the compatibility section that granting grant options to PUBLIC is not supported by PostgreSQL. This is already mentioned earlier, but since it concerns the information schema, it might be worth pointing out explicitly as a compatibility issue.
-
- Jan 07, 2012
-
-
Peter Eisentraut authored
The original implementation of this interpreted it as a kind of "inheritance" facility and named all the internal structures accordingly. This turned out to be very confusing, because it has nothing to do with the INHERITS feature. So rename all the internal parser infrastructure, update the comments, adjust the error messages, and split up the regression tests.
-
- Jan 06, 2012
-
-
Tom Lane authored
Spotted by Koizumi Satoru.
-
- Jan 05, 2012
-
-
Peter Eisentraut authored
ALTER DOMAIN / DROP CONSTRAINT on a nonexistent constraint name did not report any error. Now it reports an error. The IF EXISTS option was added to get the usual behavior of ignoring nonexistent objects to drop.
-
- Jan 03, 2012
-
-
Andrew Dunstan authored
Brar Piening, reviewed by Craig Ringer.
-
- Jan 02, 2012
-
-
Bruce Momjian authored
-
- Dec 31, 2011
-
-
Simon Riggs authored
Allows streaming replication users to calculate transfer latency and apply delay via internal functions. No external functions yet.
-
- Dec 26, 2011
-
-
Alvaro Herrera authored
Author: Erik Rijkers
-
- Dec 25, 2011
-
-
Tom Lane authored
In commit e2c2c2e8 I made use of nested list structures to show which clauses went with which index columns, but on reflection that's a data structure that only an old-line Lisp hacker could love. Worse, it adds unnecessary complication to the many places that don't much care which clauses go with which index columns. Revert to the previous arrangement of flat lists of clauses, and instead add a parallel integer list of column numbers. The places that care about the pairing can chase both lists with forboth(), while the places that don't care just examine one list the same as before. The only real downside to this is that there are now two more lists that need to be passed to amcostestimate functions in case they care about column matching (which btcostestimate does, so not passing the info is not an option). Rather than deal with 11-argument amcostestimate functions, pass just the IndexPath and expect the functions to extract fields from it. That gets us down to 7 arguments which is better than 11, and it seems more future-proof against likely additions to the information we keep about an index path.
-
- Dec 23, 2011
-
-
Robert Haas authored
Pavel Stehule
-
- Dec 22, 2011
-
-
Robert Haas authored
All noted by Jaime Casanova.
-
Robert Haas authored
When a view is marked as a security barrier, it will not be pulled up into the containing query, and no quals will be pushed down into it, so that no function or operator chosen by the user can be applied to rows not exposed by the view. Views not configured with this option cannot provide robust row-level security, but will perform far better. Patch by KaiGai Kohei; original problem report by Heikki Linnakangas (in October 2009!). Review (in earlier versions) by Noah Misch and others. Design advice by Tom Lane and myself. Further review and cleanup by me.
-
Peter Eisentraut authored
You could already rename domains using ALTER TYPE, but with this new command it is more consistent with how other commands treat domains as a subcategory of types.
-
- Dec 21, 2011
-
-
Robert Haas authored
KaiGai Kohei, reviewed by Dimitri Fontaine and me.
-
- Dec 19, 2011
-
-
Peter Eisentraut authored
This adds support for the more or less SQL-conforming USAGE privilege on types and domains. The intent is to be able restrict which users can create dependencies on types, which restricts the way in which owners can alter types. reviewed by Yeb Havinga
-
Alvaro Herrera authored
This makes them enforceable only on the parent table, not on children tables. This is useful in various situations, per discussion involving people bitten by the restrictive behavior introduced in 8.4. Message-Id: 8762mp93iw.fsf@comcast.net CAFaPBrSMMpubkGf4zcRL_YL-AERUbYF_-ZNNYfb3CVwwEqc9TQ@mail.gmail.com Authors: Nikhil Sontakke, Alex Hunsaker Reviewed by Robert Haas and myself
-
Tom Lane authored
Operator classes can specify whether or not they support this; this preserves the flexibility to use lossy representations within an index. In passing, move constant data about a given index into the rd_amcache cache area, instead of doing fresh lookups each time we start an index operation. This is mainly to try to make sure that spgcanreturn() has insignificant cost; I still don't have any proof that it matters for actual index accesses. Also, get rid of useless copying of FmgrInfo pointers; we can perfectly well use the relcache's versions in-place.
-
- Dec 18, 2011
-
-
Tom Lane authored
The need for this was debated when we put in the index-only-scan feature, but at the time we had no near-term expectation of having AMs that could support such scans for only some indexes; so we kept it simple. However, the SP-GiST AM forces the issue, so let's fix it. This patch only installs the new API; no behavior actually changes.
-
Bruce Momjian authored
-
- Dec 17, 2011
-
-
Tom Lane authored
SP-GiST is comparable to GiST in flexibility, but supports non-balanced partitioned search structures rather than balanced trees. As described at PGCon 2011, this new indexing structure can beat GiST in both index build time and query speed for search problems that it is well matched to. There are a number of areas that could still use improvement, but at this point the code seems committable. Teodor Sigaev and Oleg Bartunov, with considerable revisions by Tom Lane
-
Andrew Dunstan authored
-
Andrew Dunstan authored
Per gripe from Thom Brown.
-
Andrew Dunstan authored
Valid values are --pre-data, data and post-data. The option can be given more than once. --schema-only is equivalent to --section=pre-data --section=post-data. --data-only is equivalent to --section=data. Andrew Dunstan, reviewed by Joachim Wieland and Josh Berkus.
-
- Dec 16, 2011
-
-
Heikki Linnakangas authored
-
Andrew Dunstan authored
This works the same as include, except that an error is not thrown if the file is missing. Instead the fact that it's missing is logged. Greg Smith, reviewed by Euler Taveira de Oliveira.
-
- Dec 14, 2011
-
-
Andrew Dunstan authored
-
Andrew Dunstan authored
Andrew Dunstan, reviewed by Josh Berkus, Robert Haas and Peter Geoghegan. This allows dumping of a table definition but not its data, on a per table basis. Table name patterns are supported just as for --exclude-table.
-
Heikki Linnakangas authored
Yeb Havinga, reviewed by Kevin Grittner, with small changes by me.
-
- Dec 09, 2011
-
-
Peter Eisentraut authored
-
- Dec 07, 2011
-
-
Magnus Hagander authored
Instead, add a function pg_tablespace_location(oid) used to return the same information, and do this by reading the symbolic link. Doing it this way makes it possible to relocate a tablespace when the database is down by simply changing the symbolic link.
-