pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix a couple of problems in pg_get_statisticsextdef
3+ messages / 3 participants
[nested] [flat]

* pgsql: Fix a couple of problems in pg_get_statisticsextdef
@ 2017-03-27 04:04 Alvaro Herrera <alvherre@alvh.no-ip.org>
  2017-03-27 05:21 ` Re: pgsql: Fix a couple of problems in pg_get_statisticsextdef Andrew Gierth <andrew@tao11.riddles.org.uk>
  0 siblings, 1 reply; 3+ messages in thread

From: Alvaro Herrera @ 2017-03-27 04:04 UTC (permalink / raw)
  To: pgsql-committers

Fix a couple of problems in pg_get_statisticsextdef

There was a thinko whereby we tested the wrong tuple after fetching it
from cache; avoid that by using generate_relation_name instead, which is
simpler.  Also, the statistics name was not qualified, so add that.  (It
could be argued that qualification should be conditional on the schema
not being on search path.  We can add that later, but at least this form
is correct.)

Author: David Rowley, Álvaro Herrera
Discussion: https://postgr.es/m/CAKJS1f8RjLeVZJ2+93pdQGuZJeBF-ifsHaFMR-q-6-Z0qxA8cA@mail.gmail.com

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/2c3e47527a6f53cd1d98887fdb9e770c118954ca

Modified Files
--------------
src/backend/utils/adt/ruleutils.c       | 20 +++++---------------
src/test/regress/expected/rules.out     |  6 ++++++
src/test/regress/expected/stats_ext.out |  7 +++++++
src/test/regress/sql/rules.sql          |  1 +
src/test/regress/sql/stats_ext.sql      |  4 ++++
5 files changed, 23 insertions(+), 15 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] 3+ messages in thread

* Re: pgsql: Fix a couple of problems in pg_get_statisticsextdef
  2017-03-27 04:04 pgsql: Fix a couple of problems in pg_get_statisticsextdef Alvaro Herrera <alvherre@alvh.no-ip.org>
@ 2017-03-27 05:21 ` Andrew Gierth <andrew@tao11.riddles.org.uk>
  2017-03-27 15:44   ` Re: pgsql: Fix a couple of problems in pg_get_statisticsextdef Alvaro Herrera <alvherre@2ndquadrant.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Andrew Gierth @ 2017-03-27 05:21 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@alvh.no-ip.org>; +Cc: pgsql-committers

>>>>> "Alvaro" == Alvaro Herrera <alvherre@alvh.no-ip.org> writes:

 Alvaro> Fix a couple of problems in pg_get_statisticsextdef

 Alvaro> src/test/regress/expected/stats_ext.out |  7 +++++++

Missed an update to stats_ext_1.out ?

-- 
Andrew (irc:RhodiumToad)


-- 
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] 3+ messages in thread

* Re: pgsql: Fix a couple of problems in pg_get_statisticsextdef
  2017-03-27 04:04 pgsql: Fix a couple of problems in pg_get_statisticsextdef Alvaro Herrera <alvherre@alvh.no-ip.org>
  2017-03-27 05:21 ` Re: pgsql: Fix a couple of problems in pg_get_statisticsextdef Andrew Gierth <andrew@tao11.riddles.org.uk>
@ 2017-03-27 15:44   ` Alvaro Herrera <alvherre@2ndquadrant.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Alvaro Herrera @ 2017-03-27 15:44 UTC (permalink / raw)
  To: Andrew Gierth <andrew@tao11.riddles.org.uk>; +Cc: pgsql-committers

Andrew Gierth wrote:
> >>>>> "Alvaro" == Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> 
>  Alvaro> Fix a couple of problems in pg_get_statisticsextdef
> 
>  Alvaro> src/test/regress/expected/stats_ext.out |  7 +++++++
> 
> Missed an update to stats_ext_1.out ?

Yeah ... instead of fixing it, I pushed Tomas's patch to remove the need
for that file.

-- 
Álvaro Herrera                https://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] 3+ messages in thread


end of thread, other threads:[~2017-03-27 15:44 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-03-27 04:04 pgsql: Fix a couple of problems in pg_get_statisticsextdef Alvaro Herrera <alvherre@alvh.no-ip.org>
2017-03-27 05:21 ` Andrew Gierth <andrew@tao11.riddles.org.uk>
2017-03-27 15:44   ` Alvaro Herrera <alvherre@2ndquadrant.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