From: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
To: Maheswaran R <rmaheswaranmca@gmail.com>
To: pgsql-bugs@lists.postgresql.org
Subject: Re: Fwd: Creating Partition in existing Table using postgreSQL11
Date: Thu, 8 Nov 2018 09:55:39 +0900
Message-ID: <ca78466c-4b87-12ac-6902-e763b74fe54b@lab.ntt.co.jp> (raw)
In-Reply-To: <CAMfCLzNWUuhtEoshQCVA-aoSK71-TJziBp6jts7YzC-tLyb9Fw@mail.gmail.com>
References: <CAMfCLzP6HEfR53_c6rU8UfbP2zrYRk9c=6xrHWcq2cYw4x54XA@mail.gmail.com>
<e248286d-a00a-bc4e-90dc-646719833bc7@postgresql.org>
<CAMfCLzNWUuhtEoshQCVA-aoSK71-TJziBp6jts7YzC-tLyb9Fw@mail.gmail.com>
Hi,
> On 11/2/18 1:34 AM, Maheswaran R wrote:
>> Dear Sir/madam,
>> I want to create partition on existing table, is it possible to create a
>> partition on existing tables in postgreSQL 11?
>> if so please give a sample script/syntax.
You can create a partition on an existing table only if the existing table
is defined as a partitioned table, like this:
create table existing_table_name (...) partition by ....
Read more about how to create partitioned tables and their partitions at
the following documentation of CREATE TABLE:
https://www.postgresql.org/docs/11/sql-createtable.html
By the way, this is not a bug, so pgsql-bugs@... is not the list to ask
this. Next time, please send emails with such questions to
pgsql-general@lists.postgresql.org. Also, read about which mailing lists
to use in different situations by reading their descriptions here:
https://www.postgresql.org/list/
Thanks,
Amit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: Langote_Amit_f8@lab.ntt.co.jp, rmaheswaranmca@gmail.com
Subject: Re: Fwd: Creating Partition in existing Table using postgreSQL11
In-Reply-To: <ca78466c-4b87-12ac-6902-e763b74fe54b@lab.ntt.co.jp>
References: <CAMfCLzP6HEfR53_c6rU8UfbP2zrYRk9c=6xrHWcq2cYw4x54XA@mail.gmail.com> <e248286d-a00a-bc4e-90dc-646719833bc7@postgresql.org> <CAMfCLzNWUuhtEoshQCVA-aoSK71-TJziBp6jts7YzC-tLyb9Fw@mail.gmail.com> <ca78466c-4b87-12ac-6902-e763b74fe54b@lab.ntt.co.jp>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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