pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Index file got removed
15+ messages / 4 participants
[nested] [flat]

* Index file got removed
@ 2016-11-16 11:16 sudalai <sudalait2@gmail.com>
  2016-11-16 17:22 ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 1 reply; 15+ messages in thread

From: sudalai @ 2016-11-16 11:16 UTC (permalink / raw)
  To: pgsql-bugs

Hi,
 
Please look at a below sequence of SQL.

        set default_tablespace to '';
        create table test(id int primary key,  processid bigint not null ,
ruleid bigint not null );
        create index on test (ruleid );
        create index on test (processid );
        set default_tablespace to tblsp;
        alter table test alter processid type bigint, alter processid drop
not null;
 
I am creating a table test and index for that table on  default tablespace. 
Then i'm changing default_tablespace to some other tablespace.
After that altering one of the index column.
This alter operation moves the index to new default_tablespace, but index
file is missing in new tablespace.
So we can not access the table.

----
db=# select * from test;
ERROR:  could not open file "pg_tblspc/16703/PG_9.6_201608131/16385/16710":
No such file or directory

db=# \d+ test
                          Table "public.test"
  Column   |  Type   | Modifiers | Storage | Stats target | Description 
-----------+---------+-----------+---------+--------------+-------------
 id        | integer | not null  | plain   |              | 
 processid | bigint  |           | plain   |              | 
 ruleid    | bigint  | not null  | plain   |              | 
Indexes:
    "test_pkey" PRIMARY KEY, btree (id)
    "test_processid_idx" btree (processid), tablespace "tblsp"
    "test_ruleid_idx" btree (ruleid)

---

I tried it on 9.5.1 & 9.6.0, index got missed in both version.

-sudalai



-----
sudalai
--
View this message in context: http://postgresql.nabble.com/Index-file-got-removed-tp5930602.html
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 15+ messages in thread

* Re: Index file got removed
  2016-11-16 11:16 Index file got removed sudalai <sudalait2@gmail.com>
@ 2016-11-16 17:22 ` Michael Paquier <michael.paquier@gmail.com>
  2016-11-16 17:26   ` Re: Index file got removed Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 15+ messages in thread

From: Michael Paquier @ 2016-11-16 17:22 UTC (permalink / raw)
  To: sudalai <sudalait2@gmail.com>; +Cc: pgsql-bugs

On Wed, Nov 16, 2016 at 3:16 AM, sudalai <sudalait2@gmail.com> wrote:
> I am creating a table test and index for that table on  default tablespace.
> Then i'm changing default_tablespace to some other tablespace.
> After that altering one of the index column.
> This alter operation moves the index to new default_tablespace, but index
> file is missing in new tablespace.
> So we can not access the table.
>
> ----
> db=# select * from test;
> ERROR:  could not open file "pg_tblspc/16703/PG_9.6_201608131/16385/16710":
> No such file or directory

That's easily reproducible, your test case is just missing the
tablespace creation to be complete:
set default_tablespace to '';
\! rm -rf /home/ioltas/Desktop/tbspace/*
create tablespace tblsp location '/home/ioltas/ioltas/tbspace/';
create table test(id int primary key,  processid bigint not null ,
ruleid bigint not null );
create index on test (ruleid);
create index on test (processid);
set default_tablespace to tblsp;
alter table test alter processid type bigint, alter processid drop not null;
select * from test; -- boom

I am just digging into it, instinctively that would be something in
tablecmds.c..
-- 
Michael


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 15+ messages in thread

* Re: Index file got removed
  2016-11-16 11:16 Index file got removed sudalai <sudalait2@gmail.com>
  2016-11-16 17:22 ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
@ 2016-11-16 17:26   ` Tom Lane <tgl@sss.pgh.pa.us>
  2016-11-17 21:31     ` Re: Index file got removed Julien Rouhaud <julien.rouhaud@dalibo.com>
  0 siblings, 1 reply; 15+ messages in thread

From: Tom Lane @ 2016-11-16 17:26 UTC (permalink / raw)
  To: Michael Paquier <michael.paquier@gmail.com>; +Cc: sudalai <sudalait2@gmail.com>; pgsql-bugs

Michael Paquier <michael.paquier@gmail.com> writes:
> On Wed, Nov 16, 2016 at 3:16 AM, sudalai <sudalait2@gmail.com> wrote:
>> I am creating a table test and index for that table on  default tablespace.
>> Then i'm changing default_tablespace to some other tablespace.
>> After that altering one of the index column.
>> This alter operation moves the index to new default_tablespace, but index
>> file is missing in new tablespace.

> I am just digging into it, instinctively that would be something in
> tablecmds.c..

I'm betting that where it reconstructs textual commands to create the new
indexes, it's forgotten to do anything about tablespaces.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 15+ messages in thread

* Re: Index file got removed
  2016-11-16 11:16 Index file got removed sudalai <sudalait2@gmail.com>
  2016-11-16 17:22 ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  2016-11-16 17:26   ` Re: Index file got removed Tom Lane <tgl@sss.pgh.pa.us>
@ 2016-11-17 21:31     ` Julien Rouhaud <julien.rouhaud@dalibo.com>
  2016-11-17 22:01       ` Re: Index file got removed Julien Rouhaud <julien.rouhaud@dalibo.com>
  0 siblings, 1 reply; 15+ messages in thread

From: Julien Rouhaud @ 2016-11-17 21:31 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; Michael Paquier <michael.paquier@gmail.com>; +Cc: sudalai <sudalait2@gmail.com>; pgsql-bugs

On 16/11/2016 18:26, Tom Lane wrote:
> Michael Paquier <michael.paquier@gmail.com> writes:
>> On Wed, Nov 16, 2016 at 3:16 AM, sudalai <sudalait2@gmail.com> wrote:
>>> I am creating a table test and index for that table on  default tablespace.
>>> Then i'm changing default_tablespace to some other tablespace.
>>> After that altering one of the index column.
>>> This alter operation moves the index to new default_tablespace, but index
>>> file is missing in new tablespace.
> 
>> I am just digging into it, instinctively that would be something in
>> tablecmds.c..
> 
> I'm betting that where it reconstructs textual commands to create the new
> indexes, it's forgotten to do anything about tablespaces.

I looked at it, and IIUC the issue is that during AT_PASS_OLD_INDEX
pass, ATExecAddIndex defines a new index using the old heap in original
tablespace (stmt->oldNode is valid), and DefineIndex will create a new
cat entry using the current default tablespace instead of the existing
index one.

The only way I found to fix this is to save the original tablespace in
ATExecAddIndex() if the old heap is reused, see attached patch. I'm not
at all familiar with this part of code, but at least initdb and
regression tests don't fail.

-- 
Julien Rouhaud
http://dalibo.com - http://dalibo.org

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Attachments:

fix_at_addindex.diff (text/x-diff, 836B) download diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index f97bee5..6ab7556 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -5914,6 +5914,16 @@ ATExecAddIndex(AlteredTableInfo *tab, Relation rel, check_rights = !is_rebuild; /* skip index build if phase 3 will do it or we're reusing an old one */ skip_build = tab->rewrite > 0 || OidIsValid(stmt->oldNode); + /* keep track of original tablespace if we're reusing old index */ + if (tab->rewrite == 0 && OidIsValid(stmt->oldNode)) + { + Oid tablespaceid = get_rel_tablespace(stmt->oldNode); + + if (tablespaceid == InvalidOid) + tablespaceid = MyDatabaseTableSpace; + + stmt->tableSpace = get_tablespace_name(tablespaceid); + } /* suppress notices when rebuilding existing index */ quiet = is_rebuild;
^ permalink raw reply [nested|flat] 15+ messages in thread

* Re: Index file got removed
  2016-11-16 11:16 Index file got removed sudalai <sudalait2@gmail.com>
  2016-11-16 17:22 ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  2016-11-16 17:26   ` Re: Index file got removed Tom Lane <tgl@sss.pgh.pa.us>
  2016-11-17 21:31     ` Re: Index file got removed Julien Rouhaud <julien.rouhaud@dalibo.com>
@ 2016-11-17 22:01       ` Julien Rouhaud <julien.rouhaud@dalibo.com>
  2016-11-22 12:57         ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 1 reply; 15+ messages in thread

From: Julien Rouhaud @ 2016-11-17 22:01 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; Michael Paquier <michael.paquier@gmail.com>; +Cc: sudalai <sudalait2@gmail.com>; pgsql-bugs

On 17/11/2016 22:31, Julien Rouhaud wrote:
> On 16/11/2016 18:26, Tom Lane wrote:
>> Michael Paquier <michael.paquier@gmail.com> writes:
>>> On Wed, Nov 16, 2016 at 3:16 AM, sudalai <sudalait2@gmail.com> wrote:
>>>> I am creating a table test and index for that table on  default tablespace.
>>>> Then i'm changing default_tablespace to some other tablespace.
>>>> After that altering one of the index column.
>>>> This alter operation moves the index to new default_tablespace, but index
>>>> file is missing in new tablespace.
>>
>>> I am just digging into it, instinctively that would be something in
>>> tablecmds.c..
>>
>> I'm betting that where it reconstructs textual commands to create the new
>> indexes, it's forgotten to do anything about tablespaces.
> 
> I looked at it, and IIUC the issue is that during AT_PASS_OLD_INDEX
> pass, ATExecAddIndex defines a new index using the old heap in original
> tablespace (stmt->oldNode is valid), and DefineIndex will create a new
> cat entry using the current default tablespace instead of the existing
> index one.
> 
> The only way I found to fix this is to save the original tablespace in
> ATExecAddIndex() if the old heap is reused, see attached patch. I'm not
> at all familiar with this part of code, but at least initdb and
> regression tests don't fail.

After some more thoughts, this is probably broken if a single command
recreates a mix of indexes that should be and should not be rebuilt.
The original tablespace information could be saved and restored around
DefineIndex(), but since it looks like an ugly hack I prefer to wait if
there's a better fix for this.

-- 
Julien Rouhaud
http://dalibo.com - http://dalibo.org


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 15+ messages in thread

* Re: Index file got removed
  2016-11-16 11:16 Index file got removed sudalai <sudalait2@gmail.com>
  2016-11-16 17:22 ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  2016-11-16 17:26   ` Re: Index file got removed Tom Lane <tgl@sss.pgh.pa.us>
  2016-11-17 21:31     ` Re: Index file got removed Julien Rouhaud <julien.rouhaud@dalibo.com>
  2016-11-17 22:01       ` Re: Index file got removed Julien Rouhaud <julien.rouhaud@dalibo.com>
@ 2016-11-22 12:57         ` Michael Paquier <michael.paquier@gmail.com>
  2016-11-22 19:32           ` Re: Index file got removed Julien Rouhaud <julien.rouhaud@dalibo.com>
  2016-11-23 18:50           ` Re: Index file got removed Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 2 replies; 15+ messages in thread

From: Michael Paquier @ 2016-11-22 12:57 UTC (permalink / raw)
  To: Julien Rouhaud <julien.rouhaud@dalibo.com>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; sudalai <sudalait2@gmail.com>; pgsql-bugs

On Thu, Nov 17, 2016 at 2:01 PM, Julien Rouhaud
<julien.rouhaud@dalibo.com> wrote:
> After some more thoughts, this is probably broken if a single command
> recreates a mix of indexes that should be and should not be rebuilt.
> The original tablespace information could be saved and restored around
> DefineIndex(), but since it looks like an ugly hack I prefer to wait if
> there's a better fix for this.

OK, I have spent some time on this one. And per the docs
default_tablespace should only assign tablespace to the specified
default only for CREATE commands, and having an index tablespace
switched to the value of default_tablespace is definitely incorrect on
ALTER TABLE TYPE. So we need to find a way to keep around the
tablespace of the original index...

First I had a look at the patch proposed. As far as I can see, it is
broken for at least two reasons. First, in some of the tests I have
added in the patch attached, aka one table with two indexes, one being
on pg_default and the second on a custom tablespace, HEAD switches
both indexes to a custom tablespace, while your patch switches both to
pg_default. In any case, be it an index rewrite or not, both indexes
should stay on their original tablespace. The second problem is that
oldNode refers to relfilenode, so if an index has been reindexed at
least once ALTER TABLE would be broken.

So I have explored in the code what would be the best way to fix the problem:
1) Append the correct tablespace to the SQL string of CREATE INDEX.
Those command strings are stored in changedIndexDefs in tablecmds.c,
and those get generated by pg_get_indexdef_string(), which can append
a tablespace if it is *not* a default. Appending *pg_default* to it
would be dangerous and it would have user-visible changes. OK _string
is not directly SQL callable but any caller of this function would be
impacted.
2) Take advantage of is_alter_table in DefineIndex(), and do some
extra processing when assigning the tablespace of an index. In short,
if IndexStmt->tablespace is NULL and DefineIndex() is used for an
ALTER TABLE, ignore default_tablespace and assign pg_default. This
way, the current tablespace of an index is protected all the time,
even if the tablespace of an index is not the default.

2) is more solid, and is far less invasive than 1), and has no impact
on existing routines of ruleutils.c, so I have implemented it with a
set of regression tests. I am adding that to the next CF so as we
don't forget about it. Thoughts are welcome.
-- 
Michael

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Attachments:

alter-tab-type-fix.patch (binary/octet-stream, 6.8K) download diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c index 85817c6..6013202 100644 --- a/src/backend/commands/indexcmds.c +++ b/src/backend/commands/indexcmds.c @@ -416,13 +416,20 @@ DefineIndex(Oid relationId, } /* - * Select tablespace to use. If not specified, use default tablespace - * (which may in turn default to database's default). + * Select tablespace to use. For indexes created as part of ALTER + * TABLE, use pg_default if no tablespace is defined. This ensures + * that the tablespace of a rewritten index is constant for such + * queries. In other cases, if not specified, use the default + * tablespace defined. (which may in turn default to database's default). */ if (stmt->tableSpace) { tablespaceId = get_tablespace_oid(stmt->tableSpace, false); } + else if (is_alter_table) + { + tablespaceId = InvalidOid; + } else { tablespaceId = GetDefaultTablespace(rel->rd_rel->relpersistence); diff --git a/src/test/regress/input/tablespace.source b/src/test/regress/input/tablespace.source index 041ec97..5282859 100644 --- a/src/test/regress/input/tablespace.source +++ b/src/test/regress/input/tablespace.source @@ -44,6 +44,38 @@ CREATE INDEX foo_idx on testschema.foo(i) TABLESPACE regress_tblspace; SELECT relname, spcname FROM pg_catalog.pg_tablespace t, pg_catalog.pg_class c where c.reltablespace = t.oid AND c.relname = 'foo_idx'; +-- default_tablespace and ALTER TABLE TYPE +CREATE TABLE testschema.test_default_tab(id bigint) TABLESPACE regress_tblspace; +INSERT INTO testschema.test_default_tab VALUES (1); +-- Create indexes on different tablespaces +CREATE INDEX test_index1 on testschema.test_default_tab (id); +CREATE INDEX test_index2 on testschema.test_default_tab (id) TABLESPACE regress_tblspace; +\d testschema.test_index1 +\d testschema.test_index2 +-- Use a custom tablespace for default_tablespace +SET default_tablespace TO regress_tblspace; +-- tablespace should not change if no rewrite +ALTER TABLE testschema.test_default_tab ALTER id TYPE bigint; +\d testschema.test_index1 +\d testschema.test_index2 +SELECT * FROM testschema.test_default_tab; +-- tablespace should not change even if there is an index rewrite +ALTER TABLE testschema.test_default_tab ALTER id TYPE int; +\d testschema.test_index1 +\d testschema.test_index2 +SELECT * FROM testschema.test_default_tab; +-- Now use the default tablespace for default_tablespace +SET default_tablespace TO ''; +-- tablespace should not change if no rewrite +ALTER TABLE testschema.test_default_tab ALTER id TYPE int; +\d testschema.test_index1 +\d testschema.test_index2 +-- tablespace should not change even if there is an index rewrite +ALTER TABLE testschema.test_default_tab ALTER id TYPE bigint; +\d testschema.test_index1 +\d testschema.test_index2 +DROP TABLE testschema.test_default_tab; + -- let's try moving a table from one place to another CREATE TABLE testschema.atable AS VALUES (1), (2); CREATE UNIQUE INDEX anindex ON testschema.atable(column1); diff --git a/src/test/regress/output/tablespace.source b/src/test/regress/output/tablespace.source index 384f689..a82403b 100644 --- a/src/test/regress/output/tablespace.source +++ b/src/test/regress/output/tablespace.source @@ -61,6 +61,112 @@ SELECT relname, spcname FROM pg_catalog.pg_tablespace t, pg_catalog.pg_class c foo_idx | regress_tblspace (1 row) +-- default_tablespace and ALTER TABLE TYPE +CREATE TABLE testschema.test_default_tab(id bigint) TABLESPACE regress_tblspace; +INSERT INTO testschema.test_default_tab VALUES (1); +-- Create indexes on different tablespaces +CREATE INDEX test_index1 on testschema.test_default_tab (id); +CREATE INDEX test_index2 on testschema.test_default_tab (id) TABLESPACE regress_tblspace; +\d testschema.test_index1 +Index "testschema.test_index1" + Column | Type | Definition +--------+--------+------------ + id | bigint | id +btree, for table "testschema.test_default_tab" + +\d testschema.test_index2 +Index "testschema.test_index2" + Column | Type | Definition +--------+--------+------------ + id | bigint | id +btree, for table "testschema.test_default_tab" +Tablespace: "regress_tblspace" + +-- Use a custom tablespace for default_tablespace +SET default_tablespace TO regress_tblspace; +-- tablespace should not change if no rewrite +ALTER TABLE testschema.test_default_tab ALTER id TYPE bigint; +\d testschema.test_index1 +Index "testschema.test_index1" + Column | Type | Definition +--------+--------+------------ + id | bigint | id +btree, for table "testschema.test_default_tab" + +\d testschema.test_index2 +Index "testschema.test_index2" + Column | Type | Definition +--------+--------+------------ + id | bigint | id +btree, for table "testschema.test_default_tab" +Tablespace: "regress_tblspace" + +SELECT * FROM testschema.test_default_tab; + id +---- + 1 +(1 row) + +-- tablespace should not change even if there is an index rewrite +ALTER TABLE testschema.test_default_tab ALTER id TYPE int; +\d testschema.test_index1 +Index "testschema.test_index1" + Column | Type | Definition +--------+---------+------------ + id | integer | id +btree, for table "testschema.test_default_tab" + +\d testschema.test_index2 +Index "testschema.test_index2" + Column | Type | Definition +--------+---------+------------ + id | integer | id +btree, for table "testschema.test_default_tab" +Tablespace: "regress_tblspace" + +SELECT * FROM testschema.test_default_tab; + id +---- + 1 +(1 row) + +-- Now use the default tablespace for default_tablespace +SET default_tablespace TO ''; +-- tablespace should not change if no rewrite +ALTER TABLE testschema.test_default_tab ALTER id TYPE int; +\d testschema.test_index1 +Index "testschema.test_index1" + Column | Type | Definition +--------+---------+------------ + id | integer | id +btree, for table "testschema.test_default_tab" + +\d testschema.test_index2 +Index "testschema.test_index2" + Column | Type | Definition +--------+---------+------------ + id | integer | id +btree, for table "testschema.test_default_tab" +Tablespace: "regress_tblspace" + +-- tablespace should not change even if there is an index rewrite +ALTER TABLE testschema.test_default_tab ALTER id TYPE bigint; +\d testschema.test_index1 +Index "testschema.test_index1" + Column | Type | Definition +--------+--------+------------ + id | bigint | id +btree, for table "testschema.test_default_tab" + +\d testschema.test_index2 +Index "testschema.test_index2" + Column | Type | Definition +--------+--------+------------ + id | bigint | id +btree, for table "testschema.test_default_tab" +Tablespace: "regress_tblspace" + +DROP TABLE testschema.test_default_tab; -- let's try moving a table from one place to another CREATE TABLE testschema.atable AS VALUES (1), (2); CREATE UNIQUE INDEX anindex ON testschema.atable(column1);
^ permalink raw reply [nested|flat] 15+ messages in thread

* Re: Index file got removed
  2016-11-16 11:16 Index file got removed sudalai <sudalait2@gmail.com>
  2016-11-16 17:22 ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  2016-11-16 17:26   ` Re: Index file got removed Tom Lane <tgl@sss.pgh.pa.us>
  2016-11-17 21:31     ` Re: Index file got removed Julien Rouhaud <julien.rouhaud@dalibo.com>
  2016-11-17 22:01       ` Re: Index file got removed Julien Rouhaud <julien.rouhaud@dalibo.com>
  2016-11-22 12:57         ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
@ 2016-11-22 19:32           ` Julien Rouhaud <julien.rouhaud@dalibo.com>
  2016-11-22 19:33             ` Re: Index file got removed Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 1 reply; 15+ messages in thread

From: Julien Rouhaud @ 2016-11-22 19:32 UTC (permalink / raw)
  To: Michael Paquier <michael.paquier@gmail.com>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; sudalai <sudalait2@gmail.com>; pgsql-bugs

On Tue, Nov 22, 2016 at 09:57:29PM +0900, Michael Paquier wrote:
> 
> So I have explored in the code what would be the best way to fix the problem:
> 1) Append the correct tablespace to the SQL string of CREATE INDEX.
> Those command strings are stored in changedIndexDefs in tablecmds.c,
> and those get generated by pg_get_indexdef_string(), which can append
> a tablespace if it is *not* a default. Appending *pg_default* to it
> would be dangerous and it would have user-visible changes. OK _string
> is not directly SQL callable but any caller of this function would be
> impacted.
> 2) Take advantage of is_alter_table in DefineIndex(), and do some
> extra processing when assigning the tablespace of an index. In short,
> if IndexStmt->tablespace is NULL and DefineIndex() is used for an
> ALTER TABLE, ignore default_tablespace and assign pg_default. This
> way, the current tablespace of an index is protected all the time,
> even if the tablespace of an index is not the default.
> 
> 2) is more solid, and is far less invasive than 1), and has no impact
> on existing routines of ruleutils.c, so I have implemented it with a
> set of regression tests. I am adding that to the next CF so as we
> don't forget about it. Thoughts are welcome.

I agree that 2nd solution looks better.  I reviewed your patch and everything
works as intended, same for new regression tests which seem to cover all
possible cases.  I mark it as ready for committers.

--
Julien Rouhaud
http://dalibo.com - http://dalibo.org

Attachments:

  signature.asc (application/pgp-signature, 454B) download

^ permalink  raw  reply  [nested|flat] 15+ messages in thread

* Re: Index file got removed
  2016-11-16 11:16 Index file got removed sudalai <sudalait2@gmail.com>
  2016-11-16 17:22 ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  2016-11-16 17:26   ` Re: Index file got removed Tom Lane <tgl@sss.pgh.pa.us>
  2016-11-17 21:31     ` Re: Index file got removed Julien Rouhaud <julien.rouhaud@dalibo.com>
  2016-11-17 22:01       ` Re: Index file got removed Julien Rouhaud <julien.rouhaud@dalibo.com>
  2016-11-22 12:57         ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  2016-11-22 19:32           ` Re: Index file got removed Julien Rouhaud <julien.rouhaud@dalibo.com>
@ 2016-11-22 19:33             ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 15+ messages in thread

From: Tom Lane @ 2016-11-22 19:33 UTC (permalink / raw)
  To: Julien Rouhaud <julien.rouhaud@dalibo.com>; +Cc: Michael Paquier <michael.paquier@gmail.com>; sudalai <sudalait2@gmail.com>; pgsql-bugs

Julien Rouhaud <julien.rouhaud@dalibo.com> writes:
> I agree that 2nd solution looks better.  I reviewed your patch and everything
> works as intended, same for new regression tests which seem to cover all
> possible cases.  I mark it as ready for committers.

Thanks for the review.  I plan to look at this shortly.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 15+ messages in thread

* Re: Index file got removed
  2016-11-16 11:16 Index file got removed sudalai <sudalait2@gmail.com>
  2016-11-16 17:22 ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  2016-11-16 17:26   ` Re: Index file got removed Tom Lane <tgl@sss.pgh.pa.us>
  2016-11-17 21:31     ` Re: Index file got removed Julien Rouhaud <julien.rouhaud@dalibo.com>
  2016-11-17 22:01       ` Re: Index file got removed Julien Rouhaud <julien.rouhaud@dalibo.com>
  2016-11-22 12:57         ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
@ 2016-11-23 18:50           ` Tom Lane <tgl@sss.pgh.pa.us>
  2016-11-23 22:05             ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  1 sibling, 1 reply; 15+ messages in thread

From: Tom Lane @ 2016-11-23 18:50 UTC (permalink / raw)
  To: Michael Paquier <michael.paquier@gmail.com>; +Cc: Julien Rouhaud <julien.rouhaud@dalibo.com>; sudalai <sudalait2@gmail.com>; pgsql-bugs

Michael Paquier <michael.paquier@gmail.com> writes:
> So I have explored in the code what would be the best way to fix the problem:
> 1) Append the correct tablespace to the SQL string of CREATE INDEX.
> Those command strings are stored in changedIndexDefs in tablecmds.c,
> and those get generated by pg_get_indexdef_string(), which can append
> a tablespace if it is *not* a default. Appending *pg_default* to it
> would be dangerous and it would have user-visible changes. OK _string
> is not directly SQL callable but any caller of this function would be
> impacted.

I think that this is the correct fix.  There aren't any other callers
in the core code, and even if some third party is calling it, it's
fairly hard to see what usage would be okay with a TABLESPACE clause
being appended some of the time but not all of the time.  Also, both
of the other proposed fixes seem like kluges to me.

I pushed a patch that fixes it that way but incorporates your regression
test cases.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 15+ messages in thread

* Re: Index file got removed
  2016-11-16 11:16 Index file got removed sudalai <sudalait2@gmail.com>
  2016-11-16 17:22 ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  2016-11-16 17:26   ` Re: Index file got removed Tom Lane <tgl@sss.pgh.pa.us>
  2016-11-17 21:31     ` Re: Index file got removed Julien Rouhaud <julien.rouhaud@dalibo.com>
  2016-11-17 22:01       ` Re: Index file got removed Julien Rouhaud <julien.rouhaud@dalibo.com>
  2016-11-22 12:57         ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  2016-11-23 18:50           ` Re: Index file got removed Tom Lane <tgl@sss.pgh.pa.us>
@ 2016-11-23 22:05             ` Michael Paquier <michael.paquier@gmail.com>
  2016-11-23 22:46               ` Re: Index file got removed Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 15+ messages in thread

From: Michael Paquier @ 2016-11-23 22:05 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Julien Rouhaud <julien.rouhaud@dalibo.com>; sudalai <sudalait2@gmail.com>; pgsql-bugs

On Thu, Nov 24, 2016 at 3:50 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Michael Paquier <michael.paquier@gmail.com> writes:
>> So I have explored in the code what would be the best way to fix the problem:
>> 1) Append the correct tablespace to the SQL string of CREATE INDEX.
>> Those command strings are stored in changedIndexDefs in tablecmds.c,
>> and those get generated by pg_get_indexdef_string(), which can append
>> a tablespace if it is *not* a default. Appending *pg_default* to it
>> would be dangerous and it would have user-visible changes. OK _string
>> is not directly SQL callable but any caller of this function would be
>> impacted.
>
> I think that this is the correct fix.  There aren't any other callers
> in the core code, and even if some third party is calling it, it's
> fairly hard to see what usage would be okay with a TABLESPACE clause
> being appended some of the time but not all of the time.  Also, both
> of the other proposed fixes seem like kluges to me.
>
> I pushed a patch that fixes it that way but incorporates your regression
> test cases.

This fix looked like a kludge to me, that's why I did not do it :)
Any code paths of ALTER TABLE calling DefineIndex won't take advantage
of is_alter_table to define the tablespace, so we may be bitten again
by the same kind of problems in the future. That won't be an immediate
problem as the command strings are generated by this caller, right.
Thanks for the commit.
-- 
Michael


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 15+ messages in thread

* Re: Index file got removed
  2016-11-16 11:16 Index file got removed sudalai <sudalait2@gmail.com>
  2016-11-16 17:22 ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  2016-11-16 17:26   ` Re: Index file got removed Tom Lane <tgl@sss.pgh.pa.us>
  2016-11-17 21:31     ` Re: Index file got removed Julien Rouhaud <julien.rouhaud@dalibo.com>
  2016-11-17 22:01       ` Re: Index file got removed Julien Rouhaud <julien.rouhaud@dalibo.com>
  2016-11-22 12:57         ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  2016-11-23 18:50           ` Re: Index file got removed Tom Lane <tgl@sss.pgh.pa.us>
  2016-11-23 22:05             ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
@ 2016-11-23 22:46               ` Tom Lane <tgl@sss.pgh.pa.us>
  2016-11-23 23:31                 ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 1 reply; 15+ messages in thread

From: Tom Lane @ 2016-11-23 22:46 UTC (permalink / raw)
  To: Michael Paquier <michael.paquier@gmail.com>; +Cc: Julien Rouhaud <julien.rouhaud@dalibo.com>; sudalai <sudalait2@gmail.com>; pgsql-bugs

Michael Paquier <michael.paquier@gmail.com> writes:
> On Thu, Nov 24, 2016 at 3:50 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> I think that this is the correct fix.  There aren't any other callers
>> in the core code, and even if some third party is calling it, it's
>> fairly hard to see what usage would be okay with a TABLESPACE clause
>> being appended some of the time but not all of the time.  Also, both
>> of the other proposed fixes seem like kluges to me.

> This fix looked like a kludge to me, that's why I did not do it :)
> Any code paths of ALTER TABLE calling DefineIndex won't take advantage
> of is_alter_table to define the tablespace, so we may be bitten again
> by the same kind of problems in the future.

Well, the reason that way seemed like a kluge is that I don't see what
connection is_alter_table has to overriding DefineIndex's normal idea
of which tablespace to use.  I think that's at least as likely to
induce new bugs as fix them.  For instance, wouldn't it change the
behavior of ALTER TABLE ADD PRIMARY KEY?  It seems to me that that
command *should* honor default_tablespace, if there's no tablespace
clause in it.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 15+ messages in thread

* Re: Index file got removed
  2016-11-16 11:16 Index file got removed sudalai <sudalait2@gmail.com>
  2016-11-16 17:22 ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  2016-11-16 17:26   ` Re: Index file got removed Tom Lane <tgl@sss.pgh.pa.us>
  2016-11-17 21:31     ` Re: Index file got removed Julien Rouhaud <julien.rouhaud@dalibo.com>
  2016-11-17 22:01       ` Re: Index file got removed Julien Rouhaud <julien.rouhaud@dalibo.com>
  2016-11-22 12:57         ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  2016-11-23 18:50           ` Re: Index file got removed Tom Lane <tgl@sss.pgh.pa.us>
  2016-11-23 22:05             ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  2016-11-23 22:46               ` Re: Index file got removed Tom Lane <tgl@sss.pgh.pa.us>
@ 2016-11-23 23:31                 ` Michael Paquier <michael.paquier@gmail.com>
  2016-11-24 02:34                   ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 1 reply; 15+ messages in thread

From: Michael Paquier @ 2016-11-23 23:31 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Julien Rouhaud <julien.rouhaud@dalibo.com>; sudalai <sudalait2@gmail.com>; pgsql-bugs

On Thu, Nov 24, 2016 at 7:46 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> For instance, wouldn't it change the behavior of ALTER TABLE ADD
> PRIMARY KEY?

Good point. I forgot this one.
-- 
Michael


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 15+ messages in thread

* Re: Index file got removed
  2016-11-16 11:16 Index file got removed sudalai <sudalait2@gmail.com>
  2016-11-16 17:22 ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  2016-11-16 17:26   ` Re: Index file got removed Tom Lane <tgl@sss.pgh.pa.us>
  2016-11-17 21:31     ` Re: Index file got removed Julien Rouhaud <julien.rouhaud@dalibo.com>
  2016-11-17 22:01       ` Re: Index file got removed Julien Rouhaud <julien.rouhaud@dalibo.com>
  2016-11-22 12:57         ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  2016-11-23 18:50           ` Re: Index file got removed Tom Lane <tgl@sss.pgh.pa.us>
  2016-11-23 22:05             ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  2016-11-23 22:46               ` Re: Index file got removed Tom Lane <tgl@sss.pgh.pa.us>
  2016-11-23 23:31                 ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
@ 2016-11-24 02:34                   ` Michael Paquier <michael.paquier@gmail.com>
  2016-11-24 19:15                     ` Re: Index file got removed Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 15+ messages in thread

From: Michael Paquier @ 2016-11-24 02:34 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Julien Rouhaud <julien.rouhaud@dalibo.com>; sudalai <sudalait2@gmail.com>; pgsql-bugs

On Thu, Nov 24, 2016 at 8:31 AM, Michael Paquier
<michael.paquier@gmail.com> wrote:
> On Thu, Nov 24, 2016 at 7:46 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> For instance, wouldn't it change the behavior of ALTER TABLE ADD
>> PRIMARY KEY?
>
> Good point. I forgot this one.

And I just wrote a test case breaking my previous patch, please see
attached. The idea is just to use ADD CONSTRAINT foo { PRIMARY KEY |
UNIQUE } and check if default_tablespace works as expected. Perhaps
that's worth having in the test suite? There is currently no coverage
regarding for index additions done with ALTER TABLE and tablespaces.
-- 
Michael

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Attachments:

alter-table-add-regression.patch (application/x-patch, 2.6K) download diff --git a/src/test/regress/input/tablespace.source b/src/test/regress/input/tablespace.source index 2e676e9..9d47d62 100644 --- a/src/test/regress/input/tablespace.source +++ b/src/test/regress/input/tablespace.source @@ -75,6 +75,19 @@ ALTER TABLE testschema.test_default_tab ALTER id TYPE bigint; \d testschema.test_index2 DROP TABLE testschema.test_default_tab; +-- check that default_tablespace affects index additions in ALTER TABLE +CREATE TABLE testschema.test_tab(id int) TABLESPACE regress_tblspace; +INSERT INTO testschema.test_tab VALUES (1); +-- test with default tablespace +SET default_tablespace TO ''; +ALTER TABLE testschema.test_tab ADD CONSTRAINT test_tab_pkey PRIMARY KEY (id); +SET default_tablespace TO regress_tblspace; +ALTER TABLE testschema.test_tab ADD CONSTRAINT test_tab_unique UNIQUE (id); +\d testschema.test_tab_pkey +\d testschema.test_tab_unique +SELECT * FROM testschema.test_tab; +DROP TABLE testschema.test_tab; + -- let's try moving a table from one place to another CREATE TABLE testschema.atable AS VALUES (1), (2); CREATE UNIQUE INDEX anindex ON testschema.atable(column1); diff --git a/src/test/regress/output/tablespace.source b/src/test/regress/output/tablespace.source index 6e0dfd1..ae2cf9a 100644 --- a/src/test/regress/output/tablespace.source +++ b/src/test/regress/output/tablespace.source @@ -166,6 +166,36 @@ btree, for table "testschema.test_default_tab" Tablespace: "regress_tblspace" DROP TABLE testschema.test_default_tab; +-- check that default_tablespace affects index additions in ALTER TABLE +CREATE TABLE testschema.test_tab(id int) TABLESPACE regress_tblspace; +INSERT INTO testschema.test_tab VALUES (1); +-- test with default tablespace +SET default_tablespace TO ''; +ALTER TABLE testschema.test_tab ADD CONSTRAINT test_tab_pkey PRIMARY KEY (id); +SET default_tablespace TO regress_tblspace; +ALTER TABLE testschema.test_tab ADD CONSTRAINT test_tab_unique UNIQUE (id); +\d testschema.test_tab_pkey +Index "testschema.test_tab_pkey" + Column | Type | Definition +--------+---------+------------ + id | integer | id +primary key, btree, for table "testschema.test_tab" + +\d testschema.test_tab_unique +Index "testschema.test_tab_unique" + Column | Type | Definition +--------+---------+------------ + id | integer | id +unique, btree, for table "testschema.test_tab" +Tablespace: "regress_tblspace" + +SELECT * FROM testschema.test_tab; + id +---- + 1 +(1 row) + +DROP TABLE testschema.test_tab; -- let's try moving a table from one place to another CREATE TABLE testschema.atable AS VALUES (1), (2); CREATE UNIQUE INDEX anindex ON testschema.atable(column1);
^ permalink raw reply [nested|flat] 15+ messages in thread

* Re: Index file got removed
  2016-11-16 11:16 Index file got removed sudalai <sudalait2@gmail.com>
  2016-11-16 17:22 ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  2016-11-16 17:26   ` Re: Index file got removed Tom Lane <tgl@sss.pgh.pa.us>
  2016-11-17 21:31     ` Re: Index file got removed Julien Rouhaud <julien.rouhaud@dalibo.com>
  2016-11-17 22:01       ` Re: Index file got removed Julien Rouhaud <julien.rouhaud@dalibo.com>
  2016-11-22 12:57         ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  2016-11-23 18:50           ` Re: Index file got removed Tom Lane <tgl@sss.pgh.pa.us>
  2016-11-23 22:05             ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  2016-11-23 22:46               ` Re: Index file got removed Tom Lane <tgl@sss.pgh.pa.us>
  2016-11-23 23:31                 ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  2016-11-24 02:34                   ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
@ 2016-11-24 19:15                     ` Tom Lane <tgl@sss.pgh.pa.us>
  2016-11-25 02:23                       ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 1 reply; 15+ messages in thread

From: Tom Lane @ 2016-11-24 19:15 UTC (permalink / raw)
  To: Michael Paquier <michael.paquier@gmail.com>; +Cc: Julien Rouhaud <julien.rouhaud@dalibo.com>; sudalai <sudalait2@gmail.com>; pgsql-bugs

Michael Paquier <michael.paquier@gmail.com> writes:
> And I just wrote a test case breaking my previous patch, please see
> attached. The idea is just to use ADD CONSTRAINT foo { PRIMARY KEY |
> UNIQUE } and check if default_tablespace works as expected. Perhaps
> that's worth having in the test suite? There is currently no coverage
> regarding for index additions done with ALTER TABLE and tablespaces.

Looks like a good idea, except that I reordered the tests so that
the stanza leaves default_tablespace back at its usual value, so
it won't affect later tests.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 15+ messages in thread

* Re: Index file got removed
  2016-11-16 11:16 Index file got removed sudalai <sudalait2@gmail.com>
  2016-11-16 17:22 ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  2016-11-16 17:26   ` Re: Index file got removed Tom Lane <tgl@sss.pgh.pa.us>
  2016-11-17 21:31     ` Re: Index file got removed Julien Rouhaud <julien.rouhaud@dalibo.com>
  2016-11-17 22:01       ` Re: Index file got removed Julien Rouhaud <julien.rouhaud@dalibo.com>
  2016-11-22 12:57         ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  2016-11-23 18:50           ` Re: Index file got removed Tom Lane <tgl@sss.pgh.pa.us>
  2016-11-23 22:05             ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  2016-11-23 22:46               ` Re: Index file got removed Tom Lane <tgl@sss.pgh.pa.us>
  2016-11-23 23:31                 ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  2016-11-24 02:34                   ` Re: Index file got removed Michael Paquier <michael.paquier@gmail.com>
  2016-11-24 19:15                     ` Re: Index file got removed Tom Lane <tgl@sss.pgh.pa.us>
@ 2016-11-25 02:23                       ` Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 0 replies; 15+ messages in thread

From: Michael Paquier @ 2016-11-25 02:23 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Julien Rouhaud <julien.rouhaud@dalibo.com>; sudalai <sudalait2@gmail.com>; pgsql-bugs

On Fri, Nov 25, 2016 at 4:15 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Michael Paquier <michael.paquier@gmail.com> writes:
>> And I just wrote a test case breaking my previous patch, please see
>> attached. The idea is just to use ADD CONSTRAINT foo { PRIMARY KEY |
>> UNIQUE } and check if default_tablespace works as expected. Perhaps
>> that's worth having in the test suite? There is currently no coverage
>> regarding for index additions done with ALTER TABLE and tablespaces.
>
> Looks like a good idea, except that I reordered the tests so that
> the stanza leaves default_tablespace back at its usual value, so
> it won't affect later tests.

OK, thanks for the commit.
-- 
Michael


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 15+ messages in thread


end of thread, other threads:[~2016-11-25 02:23 UTC | newest]

Thread overview: 15+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-11-16 11:16 Index file got removed sudalai <sudalait2@gmail.com>
2016-11-16 17:22 ` Michael Paquier <michael.paquier@gmail.com>
2016-11-16 17:26   ` Tom Lane <tgl@sss.pgh.pa.us>
2016-11-17 21:31     ` Julien Rouhaud <julien.rouhaud@dalibo.com>
2016-11-17 22:01       ` Julien Rouhaud <julien.rouhaud@dalibo.com>
2016-11-22 12:57         ` Michael Paquier <michael.paquier@gmail.com>
2016-11-22 19:32           ` Julien Rouhaud <julien.rouhaud@dalibo.com>
2016-11-22 19:33             ` Tom Lane <tgl@sss.pgh.pa.us>
2016-11-23 18:50           ` Tom Lane <tgl@sss.pgh.pa.us>
2016-11-23 22:05             ` Michael Paquier <michael.paquier@gmail.com>
2016-11-23 22:46               ` Tom Lane <tgl@sss.pgh.pa.us>
2016-11-23 23:31                 ` Michael Paquier <michael.paquier@gmail.com>
2016-11-24 02:34                   ` Michael Paquier <michael.paquier@gmail.com>
2016-11-24 19:15                     ` Tom Lane <tgl@sss.pgh.pa.us>
2016-11-25 02:23                       ` Michael Paquier <michael.paquier@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox