pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #14113: LIKE <parent> INCLUDING STORAGE bug?
2+ messages / 2 participants
[nested] [flat]

* BUG #14113: LIKE <parent> INCLUDING STORAGE bug?
@ 2016-04-25 15:33 jdnelson@dyn.com
  2016-04-28 03:50 ` Re: BUG #14113: LIKE <parent> INCLUDING STORAGE bug? David G. Johnston <david.g.johnston@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: jdnelson@dyn.com @ 2016-04-25 15:33 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      14113
Logged by:          Jon Nelson
Email address:      jdnelson@dyn.com
PostgreSQL version: 9.4.6
Operating system:   Linux
Description:        

Running 9.4.6 and 9.4.7, I think I have encountered a bug with INCLUDING
STORAGE.

The CREATE TABLE syntax with INCLUDING STORAGE would seem to suggest that
storage options on the parent table (such as fillfactor) are copied to the
new child table, but this doesn't appear to work:

jnelson=# create table p (column1 integer not null) with (fillfactor = 70);
CREATE TABLE
jnelson=# \d+ p
                           Table "public.p"
 Column  |  Type   | Modifiers | Storage | Stats target | Description
---------+---------+-----------+---------+--------------+-------------
 column1 | integer | not null  | plain   |              |
Options: fillfactor=70

jnelson=# create table c (like p including storage);
CREATE TABLE
jnelson=# \d+ c
                           Table "public.c"
 Column  |  Type   | Modifiers | Storage | Stats target | Description
---------+---------+-----------+---------+--------------+-------------
 column1 | integer | not null  | plain   |              |

jnelson=#



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

* Re: BUG #14113: LIKE <parent> INCLUDING STORAGE bug?
  2016-04-25 15:33 BUG #14113: LIKE <parent> INCLUDING STORAGE bug? jdnelson@dyn.com
@ 2016-04-28 03:50 ` David G. Johnston <david.g.johnston@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: David G. Johnston @ 2016-04-28 03:50 UTC (permalink / raw)
  To: jdnelson@dyn.com <jdnelson@dyn.com>; +Cc: pgsql-bugs

On Monday, April 25, 2016, <jdnelson@dyn.com> wrote:

> The following bug has been logged on the website:
>
> Bug reference:      14113
> Logged by:          Jon Nelson
> Email address:      jdnelson@dyn.com <javascript:;>
> PostgreSQL version: 9.4.6
> Operating system:   Linux
> Description:
>
> Running 9.4.6 and 9.4.7, I think I have encountered a bug with INCLUDING
> STORAGE.
>
> The CREATE TABLE syntax with INCLUDING STORAGE would seem to suggest that
> storage options on the parent table (such as fillfactor) are copied to the
> new child table, but this doesn't appear to work:
>
> jnelson=# create table p (column1 integer not null) with (fillfactor = 70);
> CREATE TABLE
> jnelson=# \d+ p
>                            Table "public.p"
>  Column  |  Type   | Modifiers | Storage | Stats target | Description
> ---------+---------+-----------+---------+--------------+-------------
>  column1 | integer | not null  | plain   |              |
> Options: fillfactor=70
>
> jnelson=# create table c (like p including storage);
> CREATE TABLE
> jnelson=# \d+ c
>                            Table "public.c"
>  Column  |  Type   | Modifiers | Storage | Stats target | Description
> ---------+---------+-----------+---------+--------------+-------------
>  column1 | integer | not null  | plain   |              |
>
> jnelson=#
>
>
This is intended, though your confusion is understandable.

As noted explicitly in the inherits section, and repeatedly qualified
within like, the things being copied are columns and stuff related to
them.  Fillfactor is a table-scoped property and thus is not copied.

The relevant link in the like section directs the user to the chapter on
TOAST, which I believe is the only form of column storage customization
available to the DBA.

David J,

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


end of thread, other threads:[~2016-04-28 03:50 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-04-25 15:33 BUG #14113: LIKE <parent> INCLUDING STORAGE bug? jdnelson@dyn.com
2016-04-28 03:50 ` David G. Johnston <david.g.johnston@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