Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gKYeA-0000yJ-3W for pgsql-bugs@arkaria.postgresql.org; Thu, 08 Nov 2018 00:58:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gKYc1-000671-Rn for pgsql-bugs@arkaria.postgresql.org; Thu, 08 Nov 2018 00:55:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gKYc1-00066u-IA for pgsql-bugs@lists.postgresql.org; Thu, 08 Nov 2018 00:55:57 +0000 Received: from tama500.ecl.ntt.co.jp ([129.60.39.148]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gKYbx-0008Cr-P3 for pgsql-bugs@lists.postgresql.org; Thu, 08 Nov 2018 00:55:56 +0000 Received: from vc2.ecl.ntt.co.jp (vc2.ecl.ntt.co.jp [129.60.86.154]) by tama500.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id wA80to5r024760; Thu, 8 Nov 2018 09:55:50 +0900 Received: from vc2.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id D6B286381B3; Thu, 8 Nov 2018 09:55:50 +0900 (JST) Received: from jcms-pop21.ecl.ntt.co.jp (jcms-pop21.ecl.ntt.co.jp [129.60.87.134]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id CB2F0638106; Thu, 8 Nov 2018 09:55:50 +0900 (JST) Received: from [127.0.0.1] (unknown [129.60.241.61]) by jcms-pop21.ecl.ntt.co.jp (Postfix) with ESMTPSA id C5D87400665; Thu, 8 Nov 2018 09:55:50 +0900 (JST) Subject: Re: Fwd: Creating Partition in existing Table using postgreSQL11 References: From: Amit Langote Message-ID: Date: Thu, 8 Nov 2018 09:55:39 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CC-Mail-RelayStamp: 1 To: Maheswaran R , pgsql-bugs@lists.postgresql.org X-TM-AS-MML: disable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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