Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEews-0002wj-3E for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Dec 2016 16:20:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cEewr-0003kK-Hs for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Dec 2016 16:20:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cEewq-0003jb-Ba for pgsql-hackers@postgresql.org; Wed, 07 Dec 2016 16:20:00 +0000 Received: from lb3-smtp-cloud6.xs4all.net ([194.109.24.31]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cEewn-0003Fn-DX for pgsql-hackers@postgresql.org; Wed, 07 Dec 2016 16:19:59 +0000 Received: from webmailclassic.xs4all.nl ([194.109.20.211]) by smtp-cloud6.xs4all.net with ESMTP id H4Ku1u00h4ZF39u014Ku4M; Wed, 07 Dec 2016 17:19:55 +0100 Received: from this.is.a.tor.node.xmission.com ([166.70.207.2]) by webmailclassic.xs4all.nl with HTTP (HTTP/1.1 POST); Wed, 07 Dec 2016 17:19:54 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 07 Dec 2016 17:19:54 +0100 From: Erik Rijkers To: Amit Langote Cc: Robert Haas , Amit Langote , Rajkumar Raghuwanshi , Ashutosh Bapat , Pg Hackers , pgsql-hackers-owner@postgresql.org Subject: Re: Declarative partitioning - another take In-Reply-To: <78ae9888-7372-245d-cf6b-f655e6fe6c12@lab.ntt.co.jp> References: <8d7c35e3-1c85-33d0-4440-0a75bf9d31cd@lab.ntt.co.jp> <56ec5504-c4d7-534c-8832-696dddfd58d1@lab.ntt.co.jp> <2587c47e-7ff7-80db-953f-fb532c215219@lab.ntt.co.jp> <357638a4-f4e8-317a-6450-6e03f30caa62@lab.ntt.co.jp> <890ce68d-2cff-ccf3-67f7-6f5d3264dbfc@lab.ntt.co.jp> <78ae9888-7372-245d-cf6b-f655e6fe6c12@lab.ntt.co.jp> Message-ID: X-Sender: er@xs4all.nl (OlIFa1O8j+uwHVLFiyf5bA==) User-Agent: XS4ALL Webmail X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 2016-12-07 12:42, Amit Langote wrote: > 0001-Catalog-and-DDL-for-partitioned-tables-20.patch > 0002-psql-and-pg_dump-support-for-partitioned-tables-20.patch > 0003-Catalog-and-DDL-for-partitions-20.patch > 0004-psql-and-pg_dump-support-for-partitions-20.patch > 0005-Teach-a-few-places-to-use-partition-check-quals-20.patch > 0006-Tuple-routing-for-partitioned-tables-20.patch > 0007-Update-DDL-Partitioning-chapter-to-reflect-new-devel-20.patch Patches apply, compile, check OK. But this yields a segfault: begin; create schema if not exists s; create table s.t (c text, d text, id serial) partition by list ((ascii(substring(coalesce(c, d, ''), 1, 1)))); create table s.t_part_ascii_065 partition of s.t for values in ( 65 ); it logs as follows: 2016-12-07 17:03:45.787 CET 6125 LOG: server process (PID 11503) was terminated by signal 11: Segmentation fault 2016-12-07 17:03:45.787 CET 6125 DETAIL: Failed process was running: create table s.t_part_ascii_065 partition of s.t for values in ( 65 ); 2016-12-07 17:03:45.787 CET 6125 LOG: terminating any other active server processes 2016-12-07 17:03:45.791 CET 6125 LOG: all server processes terminated; reinitializing 2016-12-07 17:03:45.999 CET 11655 LOG: database system was interrupted; last known up at 2016-12-07 17:00:38 CET 2016-12-07 17:03:48.040 CET 11655 LOG: database system was not properly shut down; automatic recovery in progress 2016-12-07 17:03:48.156 CET 11655 LOG: redo starts at 0/2897988 2016-12-07 17:03:48.172 CET 11655 LOG: invalid magic number 0000 in log segment 000000010000000000000002, offset 9207808 2016-12-07 17:03:48.172 CET 11655 LOG: redo done at 0/28C72C0 2016-12-07 17:03:48.172 CET 11655 LOG: last completed transaction was at log time 2016-12-07 17:01:29.580562+01 2016-12-07 17:03:49.534 CET 11655 LOG: MultiXact member wraparound protections are now enabled 2016-12-07 17:03:49.622 CET 6125 LOG: database system is ready to accept connections Thanks, Erik Rijkers -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers