pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: REINDEX SCHEMA
17+ messages / 7 participants
[nested] [flat]

* pgsql: REINDEX SCHEMA
@ 2014-12-08 15:31 Simon Riggs <simon@2ndQuadrant.com>
  2014-12-08 16:40 ` Re: pgsql: REINDEX SCHEMA Tom Lane <tgl@sss.pgh.pa.us>
  2014-12-09 06:31 ` Re: pgsql: REINDEX SCHEMA Tom Lane <tgl@sss.pgh.pa.us>
  2014-12-10 12:53 ` Re: pgsql: REINDEX SCHEMA Sawada Masahiko <sawada.mshk@gmail.com>
  0 siblings, 3 replies; 17+ messages in thread

From: Simon Riggs @ 2014-12-08 15:31 UTC (permalink / raw)
  To: pgsql-committers

REINDEX SCHEMA

Add new SCHEMA option to REINDEX and reindexdb.

Sawada Masahiko

Reviewed by Michael Paquier and Fabrízio de Royes Mello

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/fe263d115a7dd16095b8b8f1e943aff2bb4574d2

Modified Files
--------------
doc/src/sgml/ref/reindex.sgml              |   15 +++-
doc/src/sgml/ref/reindexdb.sgml            |   22 ++++++
src/backend/commands/indexcmds.c           |  110 ++++++++++++++++++++--------
src/backend/parser/gram.y                  |   35 +++++----
src/backend/tcop/utility.c                 |   15 ++--
src/bin/psql/tab-complete.c                |    4 +-
src/bin/scripts/reindexdb.c                |   38 +++++++++-
src/bin/scripts/t/090_reindexdb.pl         |    7 +-
src/include/commands/defrem.h              |    3 +-
src/include/nodes/parsenodes.h             |   11 ++-
src/test/regress/expected/create_index.out |   31 ++++++++
src/test/regress/sql/create_index.sql      |   23 ++++++
12 files changed, 253 insertions(+), 61 deletions(-)


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


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

* Re: pgsql: REINDEX SCHEMA
  2014-12-08 15:31 pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
@ 2014-12-08 16:40 ` Tom Lane <tgl@sss.pgh.pa.us>
  2014-12-08 16:56   ` Re: pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
  2 siblings, 1 reply; 17+ messages in thread

From: Tom Lane @ 2014-12-08 16:40 UTC (permalink / raw)
  To: Simon Riggs <simon@2ndQuadrant.com>; +Cc: pgsql-committers; Andrew Dunstan <andrew@dunslane.net>

Simon Riggs <simon@2ndQuadrant.com> writes:
> REINDEX SCHEMA

Buildfarm member crake doesn't seem to like your change in
src/bin/scripts/t/090_reindexdb.pl.  I'm not sure why not.

			regards, tom lane


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



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

* Re: pgsql: REINDEX SCHEMA
  2014-12-08 15:31 pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
  2014-12-08 16:40 ` Re: pgsql: REINDEX SCHEMA Tom Lane <tgl@sss.pgh.pa.us>
@ 2014-12-08 16:56   ` Simon Riggs <simon@2ndQuadrant.com>
  2014-12-08 16:56     ` Re: pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
  0 siblings, 1 reply; 17+ messages in thread

From: Simon Riggs @ 2014-12-08 16:56 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers; Andrew Dunstan <andrew@dunslane.net>

On 9 December 2014 at 01:40, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Simon Riggs <simon@2ndQuadrant.com> writes:
>> REINDEX SCHEMA
>
> Buildfarm member crake doesn't seem to like your change in
> src/bin/scripts/t/090_reindexdb.pl.  I'm not sure why not.

Yeh, it looks like some commands need 2 tests, others. So this was a
breakage of the test script itself, not the actual patch.

It seems we're not running bin-check in many places.

-- 
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


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



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

* Re: pgsql: REINDEX SCHEMA
  2014-12-08 15:31 pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
  2014-12-08 16:40 ` Re: pgsql: REINDEX SCHEMA Tom Lane <tgl@sss.pgh.pa.us>
  2014-12-08 16:56   ` Re: pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
@ 2014-12-08 16:56     ` Simon Riggs <simon@2ndQuadrant.com>
  0 siblings, 0 replies; 17+ messages in thread

From: Simon Riggs @ 2014-12-08 16:56 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers; Andrew Dunstan <andrew@dunslane.net>

On 9 December 2014 at 01:56, Simon Riggs <simon@2ndquadrant.com> wrote:
> On 9 December 2014 at 01:40, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Simon Riggs <simon@2ndQuadrant.com> writes:
>>> REINDEX SCHEMA
>>
>> Buildfarm member crake doesn't seem to like your change in
>> src/bin/scripts/t/090_reindexdb.pl.  I'm not sure why not.
>
> Yeh, it looks like some commands need 2 tests, others. So this was a
> breakage of the test script itself, not the actual patch.

"some commands need 2 tests, others 3"

-- 
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


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



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

* Re: pgsql: REINDEX SCHEMA
  2014-12-08 15:31 pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
@ 2014-12-09 06:31 ` Tom Lane <tgl@sss.pgh.pa.us>
  2014-12-09 07:56   ` Re: pgsql: REINDEX SCHEMA Michael Paquier <michael.paquier@gmail.com>
  2014-12-09 08:12   ` Re: pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
  2 siblings, 2 replies; 17+ messages in thread

From: Tom Lane @ 2014-12-09 06:31 UTC (permalink / raw)
  To: Simon Riggs <simon@2ndQuadrant.com>; +Cc: pgsql-committers

Simon Riggs <simon@2ndQuadrant.com> writes:
> REINDEX SCHEMA

The results from jagarundi and leech suggest that more attention needs to
be paid to ensuring that tables are reindexed in a consistent order.
Either that, or you're going to have to dumb down the regression test.

			regards, tom lane


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



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

* Re: pgsql: REINDEX SCHEMA
  2014-12-08 15:31 pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
  2014-12-09 06:31 ` Re: pgsql: REINDEX SCHEMA Tom Lane <tgl@sss.pgh.pa.us>
@ 2014-12-09 07:56   ` Michael Paquier <michael.paquier@gmail.com>
  2014-12-09 08:00     ` Re: pgsql: REINDEX SCHEMA Michael Paquier <michael.paquier@gmail.com>
  1 sibling, 1 reply; 17+ messages in thread

From: Michael Paquier @ 2014-12-09 07:56 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Simon Riggs <simon@2ndquadrant.com>; pgsql-committers

On Tue, Dec 9, 2014 at 3:31 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Simon Riggs <simon@2ndQuadrant.com> writes:
>> REINDEX SCHEMA
>
> The results from jagarundi and leech suggest that more attention needs to
> be paid to ensuring that tables are reindexed in a consistent order.
> Either that, or you're going to have to dumb down the regression test.

Hm. The diff is clear:
***************
*** 2852,2859 ****
  SET SESSION ROLE user_reindex;
  ERROR:  role "user_reindex" does not exist
  REINDEX SCHEMA schema_to_reindex;
- NOTICE:  table "schema_to_reindex.table1" was reindexed
  NOTICE:  table "schema_to_reindex.table2" was reindexed
  -- Clean up
  RESET ROLE;
  DROP ROLE user_reindex;
--- 2852,2859 ----
  SET SESSION ROLE user_reindex;
  ERROR:  role "user_reindex" does not exist
  REINDEX SCHEMA schema_to_reindex;
  NOTICE:  table "schema_to_reindex.table2" was reindexed
+ NOTICE:  table "schema_to_reindex.table1" was reindexed
  -- Clean up
  RESET ROLE;
  DROP ROLE user_reindex;

We could store the results in an array instead of a list and apply a
qsort to it, but that would be costly if there are many relations
involved in the reindex. Hence I guess raising client_min_messages to
warning is fine? I'll send a patch in the REINDEX SCHEMA thread,
groupped with a couple of other fixes to problems I just found.
-- 
Michael


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



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

* Re: pgsql: REINDEX SCHEMA
  2014-12-08 15:31 pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
  2014-12-09 06:31 ` Re: pgsql: REINDEX SCHEMA Tom Lane <tgl@sss.pgh.pa.us>
  2014-12-09 07:56   ` Re: pgsql: REINDEX SCHEMA Michael Paquier <michael.paquier@gmail.com>
@ 2014-12-09 08:00     ` Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 0 replies; 17+ messages in thread

From: Michael Paquier @ 2014-12-09 08:00 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Simon Riggs <simon@2ndquadrant.com>; pgsql-committers

On Tue, Dec 9, 2014 at 4:56 PM, Michael Paquier
<michael.paquier@gmail.com> wrote:
> On Tue, Dec 9, 2014 at 3:31 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Simon Riggs <simon@2ndQuadrant.com> writes:
>>> REINDEX SCHEMA
>>
>> The results from jagarundi and leech suggest that more attention needs to
>> be paid to ensuring that tables are reindexed in a consistent order.
>> Either that, or you're going to have to dumb down the regression test.
>
> Hm. The diff is clear:
> ***************
> *** 2852,2859 ****
>   SET SESSION ROLE user_reindex;
>   ERROR:  role "user_reindex" does not exist
>   REINDEX SCHEMA schema_to_reindex;
> - NOTICE:  table "schema_to_reindex.table1" was reindexed
>   NOTICE:  table "schema_to_reindex.table2" was reindexed
>   -- Clean up
>   RESET ROLE;
>   DROP ROLE user_reindex;
> --- 2852,2859 ----
>   SET SESSION ROLE user_reindex;
>   ERROR:  role "user_reindex" does not exist
>   REINDEX SCHEMA schema_to_reindex;
>   NOTICE:  table "schema_to_reindex.table2" was reindexed
> + NOTICE:  table "schema_to_reindex.table1" was reindexed
>   -- Clean up
>   RESET ROLE;
>   DROP ROLE user_reindex;
>
> We could store the results in an array instead of a list and apply a
> qsort to it, but that would be costly if there are many relations
> involved in the reindex. Hence I guess raising client_min_messages to
> warning is fine? I'll send a patch in the REINDEX SCHEMA thread,
> groupped with a couple of other fixes to problems I just found.
Bonus thought: using a plpgsql function that saves relfilenode before
REINDEX SCHEMA and checks that they are updated to different values
after the operation..
-- 
Michael


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



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

* Re: pgsql: REINDEX SCHEMA
  2014-12-08 15:31 pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
  2014-12-09 06:31 ` Re: pgsql: REINDEX SCHEMA Tom Lane <tgl@sss.pgh.pa.us>
@ 2014-12-09 08:12   ` Simon Riggs <simon@2ndQuadrant.com>
  2014-12-09 13:22     ` Re: pgsql: REINDEX SCHEMA Alvaro Herrera <alvherre@2ndquadrant.com>
  2014-12-09 14:17     ` Re: pgsql: REINDEX SCHEMA Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 2 replies; 17+ messages in thread

From: Simon Riggs @ 2014-12-09 08:12 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers

On 9 December 2014 at 15:31, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Simon Riggs <simon@2ndQuadrant.com> writes:
>> REINDEX SCHEMA
>
> The results from jagarundi and leech suggest that more attention needs to
> be paid to ensuring that tables are reindexed in a consistent order.
> Either that, or you're going to have to dumb down the regression test.

OK, thanks, looking again now.

Do you get emails when something fails?

-- 
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


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



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

* Re: pgsql: REINDEX SCHEMA
  2014-12-08 15:31 pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
  2014-12-09 06:31 ` Re: pgsql: REINDEX SCHEMA Tom Lane <tgl@sss.pgh.pa.us>
  2014-12-09 08:12   ` Re: pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
@ 2014-12-09 13:22     ` Alvaro Herrera <alvherre@2ndquadrant.com>
  1 sibling, 0 replies; 17+ messages in thread

From: Alvaro Herrera @ 2014-12-09 13:22 UTC (permalink / raw)
  To: Simon Riggs <simon@2ndQuadrant.com>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-committers

Simon Riggs wrote:

> Do you get emails when something fails?

The buildfarm system has a number of mailing lists for automated notices
when stuff fails; see http://buildfarm.postgresql.org/ and click on
"email lists and status archives".  They run on *gasp* pgfoundry!

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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



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

* Re: pgsql: REINDEX SCHEMA
  2014-12-08 15:31 pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
  2014-12-09 06:31 ` Re: pgsql: REINDEX SCHEMA Tom Lane <tgl@sss.pgh.pa.us>
  2014-12-09 08:12   ` Re: pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
@ 2014-12-09 14:17     ` Tom Lane <tgl@sss.pgh.pa.us>
  2014-12-09 21:41       ` Re: pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
  2014-12-10 04:30       ` Re: pgsql: REINDEX SCHEMA Andrew Dunstan <andrew@dunslane.net>
  1 sibling, 2 replies; 17+ messages in thread

From: Tom Lane @ 2014-12-09 14:17 UTC (permalink / raw)
  To: Simon Riggs <simon@2ndQuadrant.com>; +Cc: pgsql-committers

Simon Riggs <simon@2ndQuadrant.com> writes:
> Do you get emails when something fails?

No.  I used to, but buildfarm-status-green has been dysfunctional for
years now.  These days I just look at the status page every so often.

			regards, tom lane


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



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

* Re: pgsql: REINDEX SCHEMA
  2014-12-08 15:31 pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
  2014-12-09 06:31 ` Re: pgsql: REINDEX SCHEMA Tom Lane <tgl@sss.pgh.pa.us>
  2014-12-09 08:12   ` Re: pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
  2014-12-09 14:17     ` Re: pgsql: REINDEX SCHEMA Tom Lane <tgl@sss.pgh.pa.us>
@ 2014-12-09 21:41       ` Simon Riggs <simon@2ndQuadrant.com>
  1 sibling, 0 replies; 17+ messages in thread

From: Simon Riggs @ 2014-12-09 21:41 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers

On 9 December 2014 at 23:17, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Simon Riggs <simon@2ndQuadrant.com> writes:
>> Do you get emails when something fails?
>
> No.  I used to, but buildfarm-status-green has been dysfunctional for
> years now.  These days I just look at the status page every so often.

OK, thanks for checking. I won't sign up then.

Ironic that I was expecting problems from the Windows patch, not this one.

-- 
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


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



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

* Re: pgsql: REINDEX SCHEMA
  2014-12-08 15:31 pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
  2014-12-09 06:31 ` Re: pgsql: REINDEX SCHEMA Tom Lane <tgl@sss.pgh.pa.us>
  2014-12-09 08:12   ` Re: pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
  2014-12-09 14:17     ` Re: pgsql: REINDEX SCHEMA Tom Lane <tgl@sss.pgh.pa.us>
@ 2014-12-10 04:30       ` Andrew Dunstan <andrew@dunslane.net>
  2014-12-10 05:02         ` Re: pgsql: REINDEX SCHEMA Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 1 reply; 17+ messages in thread

From: Andrew Dunstan @ 2014-12-10 04:30 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; Simon Riggs <simon@2ndQuadrant.com>; +Cc: pgsql-committers


On 12/09/2014 09:17 AM, Tom Lane wrote:
> Simon Riggs <simon@2ndQuadrant.com> writes:
>> Do you get emails when something fails?
> No.  I used to, but buildfarm-status-green has been dysfunctional for
> years now.  These days I just look at the status page every so often.
>
> 			


That's the first I recall having heard of this. I am still getting a 
digest every day or two for that list, so I'm curious to know what's not 
working.

cheers

andrew


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



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

* Re: pgsql: REINDEX SCHEMA
  2014-12-08 15:31 pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
  2014-12-09 06:31 ` Re: pgsql: REINDEX SCHEMA Tom Lane <tgl@sss.pgh.pa.us>
  2014-12-09 08:12   ` Re: pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
  2014-12-09 14:17     ` Re: pgsql: REINDEX SCHEMA Tom Lane <tgl@sss.pgh.pa.us>
  2014-12-10 04:30       ` Re: pgsql: REINDEX SCHEMA Andrew Dunstan <andrew@dunslane.net>
@ 2014-12-10 05:02         ` Tom Lane <tgl@sss.pgh.pa.us>
  2014-12-10 12:42           ` Re: pgsql: REINDEX SCHEMA Alvaro Herrera <alvherre@2ndquadrant.com>
  2014-12-11 15:44           ` Re: pgsql: REINDEX SCHEMA Andrew Dunstan <andrew@dunslane.net>
  0 siblings, 2 replies; 17+ messages in thread

From: Tom Lane @ 2014-12-10 05:02 UTC (permalink / raw)
  To: Andrew Dunstan <andrew@dunslane.net>; +Cc: Simon Riggs <simon@2ndQuadrant.com>; pgsql-committers

Andrew Dunstan <andrew@dunslane.net> writes:
> On 12/09/2014 09:17 AM, Tom Lane wrote:
>> No.  I used to, but buildfarm-status-green has been dysfunctional for
>> years now.  These days I just look at the status page every so often.

> That's the first I recall having heard of this. I am still getting a 
> digest every day or two for that list, so I'm curious to know what's not 
> working.

Really?  I'm subscribed to buildfarm-status-green-digest, but to call its
delivery erratic would be an understatement.

Digging in my mail logs, my recollection that it'd been broken for more
than a year seems to be wrong: it looks like I got roughly-daily email
up to about Feb 20 2014.  Since then, though, this has been the sum total
of email from that source:



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

* Re: pgsql: REINDEX SCHEMA
  2014-12-08 15:31 pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
  2014-12-09 06:31 ` Re: pgsql: REINDEX SCHEMA Tom Lane <tgl@sss.pgh.pa.us>
  2014-12-09 08:12   ` Re: pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
  2014-12-09 14:17     ` Re: pgsql: REINDEX SCHEMA Tom Lane <tgl@sss.pgh.pa.us>
  2014-12-10 04:30       ` Re: pgsql: REINDEX SCHEMA Andrew Dunstan <andrew@dunslane.net>
  2014-12-10 05:02         ` Re: pgsql: REINDEX SCHEMA Tom Lane <tgl@sss.pgh.pa.us>
@ 2014-12-10 12:42           ` Alvaro Herrera <alvherre@2ndquadrant.com>
  1 sibling, 0 replies; 17+ messages in thread

From: Alvaro Herrera @ 2014-12-10 12:42 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Andrew Dunstan <andrew@dunslane.net>; Simon Riggs <simon@2ndQuadrant.com>; pgsql-committers

Tom Lane wrote:

> Digging in my mail logs, my recollection that it'd been broken for more
> than a year seems to be wrong: it looks like I got roughly-daily email
> up to about Feb 20 2014.  Since then, though, this has been the sum total
> of email from that source:
> 
> From pgbuildfarm-status-green-bounces@lists.pgfoundry.org  Thu Feb 20 07:01:21 2014
> From pgbuildfarm-status-green-bounces@lists.pgfoundry.org  Sat Mar 29 02:52:04 2014
> From pgbuildfarm-status-green-bounces@lists.pgfoundry.org  Mon Apr  7 15:49:05 2014
> From pgbuildfarm-status-green-bounces@lists.pgfoundry.org  Mon May 12 18:05:23 2014
> From pgbuildfarm-status-green-bounces@lists.pgfoundry.org  Wed May 28 20:19:38 2014
> From pgbuildfarm-status-green-bounces@lists.pgfoundry.org  Fri Jun 13 20:56:49 2014
> From pgbuildfarm-status-green-bounces@lists.pgfoundry.org  Tue Jul 15 13:41:20 2014
> From pgbuildfarm-status-green-bounces@lists.pgfoundry.org  Thu Aug  7 05:01:56 2014
> From pgbuildfarm-status-green-bounces@lists.pgfoundry.org  Fri Aug 29 07:04:04 2014
> From pgbuildfarm-status-green-bounces@lists.pgfoundry.org  Wed Oct  1 13:55:23 2014
> From pgbuildfarm-status-green-bounces@lists.pgfoundry.org  Sat Oct 25 15:30:02 2014
> From pgbuildfarm-status-green-bounces@lists.pgfoundry.org  Mon Dec  1 12:21:45 2014
> 
> Every so often it will burp out a digest that seems to cover a month or
> more worth of events, which of course is both bulky and uselessly late.

pgfoundry.org itself is not working terribly well apparently.  Why can't
we just move these lists to the host that runs the buildfarm web server?

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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



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

* Re: pgsql: REINDEX SCHEMA
  2014-12-08 15:31 pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
  2014-12-09 06:31 ` Re: pgsql: REINDEX SCHEMA Tom Lane <tgl@sss.pgh.pa.us>
  2014-12-09 08:12   ` Re: pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
  2014-12-09 14:17     ` Re: pgsql: REINDEX SCHEMA Tom Lane <tgl@sss.pgh.pa.us>
  2014-12-10 04:30       ` Re: pgsql: REINDEX SCHEMA Andrew Dunstan <andrew@dunslane.net>
  2014-12-10 05:02         ` Re: pgsql: REINDEX SCHEMA Tom Lane <tgl@sss.pgh.pa.us>
@ 2014-12-11 15:44           ` Andrew Dunstan <andrew@dunslane.net>
  1 sibling, 0 replies; 17+ messages in thread

From: Andrew Dunstan @ 2014-12-11 15:44 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Simon Riggs <simon@2ndQuadrant.com>; pgsql-committers


On 12/10/2014 12:02 AM, Tom Lane wrote:
>
> Every so often it will burp out a digest that seems to cover a month or
> more worth of events, which of course is both bulky and uselessly late.



I have made a change which might fix this. Let's see how it goes. I'll 
try to keep an eye on things until I get it working.

cheers

andrew


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



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

* Re: pgsql: REINDEX SCHEMA
  2014-12-08 15:31 pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
@ 2014-12-10 12:53 ` Sawada Masahiko <sawada.mshk@gmail.com>
  2014-12-24 12:54   ` Re: pgsql: REINDEX SCHEMA Fujii Masao <masao.fujii@gmail.com>
  2 siblings, 1 reply; 17+ messages in thread

From: Sawada Masahiko @ 2014-12-10 12:53 UTC (permalink / raw)
  To: Simon Riggs <simon@2ndquadrant.com>; +Cc: pgsql-committers

On Tue, Dec 9, 2014 at 12:31 AM, Simon Riggs <simon@2ndquadrant.com> wrote:
> REINDEX SCHEMA
>
> Add new SCHEMA option to REINDEX and reindexdb.
>
> Sawada Masahiko
>
> Reviewed by Michael Paquier and Fabrízio de Royes Mello
>

I noticed that the unused variable in ReindexStmt has not been removed yet.
We changed to logic of ReindexObject to avoid boolean dance.
Attached patch rid of them(do_user and do_system variable).

Regards,

-------
Sawada Masahiko

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

Attachments:

000_Rid_of_unused_variable_from_ReindexStmt.patch (application/octet-stream, 1.4K) download diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c index 6b1bf7b..64d8d18 100644 --- a/src/backend/nodes/copyfuncs.c +++ b/src/backend/nodes/copyfuncs.c @@ -3753,8 +3753,6 @@ _copyReindexStmt(const ReindexStmt *from) COPY_SCALAR_FIELD(kind); COPY_NODE_FIELD(relation); COPY_STRING_FIELD(name); - COPY_SCALAR_FIELD(do_system); - COPY_SCALAR_FIELD(do_user); return newnode; } diff --git a/src/backend/nodes/equalfuncs.c b/src/backend/nodes/equalfuncs.c index d5db71d..2d775fb 100644 --- a/src/backend/nodes/equalfuncs.c +++ b/src/backend/nodes/equalfuncs.c @@ -1900,8 +1900,6 @@ _equalReindexStmt(const ReindexStmt *a, const ReindexStmt *b) COMPARE_SCALAR_FIELD(kind); COMPARE_NODE_FIELD(relation); COMPARE_STRING_FIELD(name); - COMPARE_SCALAR_FIELD(do_system); - COMPARE_SCALAR_FIELD(do_user); return true; } diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 5eaa435..62cf2b3 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -2736,8 +2736,6 @@ typedef struct ReindexStmt ReindexObjectType kind; /* REINDEX_OBJECT_INDEX, REINDEX_OBJECT_TABLE, etc. */ RangeVar *relation; /* Table or index to reindex */ const char *name; /* name of database to reindex */ - bool do_system; /* include system tables in database case */ - bool do_user; /* include user tables in database case */ } ReindexStmt; /* ----------------------
^ permalink raw reply [nested|flat] 17+ messages in thread

* Re: pgsql: REINDEX SCHEMA
  2014-12-08 15:31 pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
  2014-12-10 12:53 ` Re: pgsql: REINDEX SCHEMA Sawada Masahiko <sawada.mshk@gmail.com>
@ 2014-12-24 12:54   ` Fujii Masao <masao.fujii@gmail.com>
  0 siblings, 0 replies; 17+ messages in thread

From: Fujii Masao @ 2014-12-24 12:54 UTC (permalink / raw)
  To: Sawada Masahiko <sawada.mshk@gmail.com>; +Cc: Simon Riggs <simon@2ndquadrant.com>; pgsql-committers

On Wed, Dec 10, 2014 at 9:53 PM, Sawada Masahiko <sawada.mshk@gmail.com> wrote:
> On Tue, Dec 9, 2014 at 12:31 AM, Simon Riggs <simon@2ndquadrant.com> wrote:
>> REINDEX SCHEMA
>>
>> Add new SCHEMA option to REINDEX and reindexdb.
>>
>> Sawada Masahiko
>>
>> Reviewed by Michael Paquier and Fabrízio de Royes Mello
>>
>
> I noticed that the unused variable in ReindexStmt has not been removed yet.
> We changed to logic of ReindexObject to avoid boolean dance.
> Attached patch rid of them(do_user and do_system variable).

Applied. Thanks!

Regards,

-- 
Fujii Masao


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



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


end of thread, other threads:[~2014-12-24 12:54 UTC | newest]

Thread overview: 17+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-12-08 15:31 pgsql: REINDEX SCHEMA Simon Riggs <simon@2ndQuadrant.com>
2014-12-08 16:40 ` Tom Lane <tgl@sss.pgh.pa.us>
2014-12-08 16:56   ` Simon Riggs <simon@2ndQuadrant.com>
2014-12-08 16:56     ` Simon Riggs <simon@2ndQuadrant.com>
2014-12-09 06:31 ` Tom Lane <tgl@sss.pgh.pa.us>
2014-12-09 07:56   ` Michael Paquier <michael.paquier@gmail.com>
2014-12-09 08:00     ` Michael Paquier <michael.paquier@gmail.com>
2014-12-09 08:12   ` Simon Riggs <simon@2ndQuadrant.com>
2014-12-09 13:22     ` Alvaro Herrera <alvherre@2ndquadrant.com>
2014-12-09 14:17     ` Tom Lane <tgl@sss.pgh.pa.us>
2014-12-09 21:41       ` Simon Riggs <simon@2ndQuadrant.com>
2014-12-10 04:30       ` Andrew Dunstan <andrew@dunslane.net>
2014-12-10 05:02         ` Tom Lane <tgl@sss.pgh.pa.us>
2014-12-10 12:42           ` Alvaro Herrera <alvherre@2ndquadrant.com>
2014-12-11 15:44           ` Andrew Dunstan <andrew@dunslane.net>
2014-12-10 12:53 ` Sawada Masahiko <sawada.mshk@gmail.com>
2014-12-24 12:54   ` Fujii Masao <masao.fujii@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