Re: Plans for partitioning of inheriting tables

From: thiemo(at)gelassene-pferde(dot)biz
To: PostgreSQL General <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Plans for partitioning of inheriting tables
Date: 2024-11-01 23:10:13
Message-ID: 20241102001013.Horde.g70bTplHNWnh_M3vk9I-edj@webmail.gelassene-pferde.biz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> escribió:

> On 11/1/24 13:47, Thiemo Kellner wrote:
>> It looks to me basically to be a "create table A as select * from B
>> where false".
>
> No it more capable then that.

Yes, I wrote basically, not exactly.

> CREATE TABLE <some_tbl> LIKE <some_other_tbl> has like_option which
> allows to transfer over more attributes of the table, for example
> defaults, constraints, indexes, etc.

But, to my understanding, no primary nor unique nor foreign constraint.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2024-11-01 23:53:46 Re: Plans for partitioning of inheriting tables
Previous Message Tom Lane 2024-11-01 22:27:53 Re: Using Expanded Objects other than Arrays from plpgsql