Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 8AD97B5DC01 for ; Tue, 13 Sep 2011 10:01:35 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 63215-08 for ; Tue, 13 Sep 2011 13:01:29 +0000 (UTC) X-Greylist: delayed 00:12:31.564412 by SQLgrey-1.7.6 Received: from storagefox.foxi.nl (D4B26F12.static.ziggozakelijk.nl [212.178.111.18]) by mail.postgresql.org (Postfix) with ESMTP id 08436B5D91F for ; Tue, 13 Sep 2011 10:01:28 -0300 (ADT) Received: from techfox.localnet (techfox.foxi [192.168.0.79]) by storagefox.foxi.nl (8.14.4/8.14.4) with ESMTP id p8DCmuw1031320 for ; Tue, 13 Sep 2011 14:48:56 +0200 From: Frank van Vugt Organization: Foxi Group To: pgsql-bugs@postgresql.org Subject: segfault using pg_options_to_table(), v9.0.4 Date: Tue, 13 Sep 2011 14:48:55 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.27.56-0.1-default; KDE/4.4.4; x86_64; ; ) X-message-flag: Fed up with inflexible software? Worried about this kind of behaviour? Have us explain Linux! Greetings from Foxi C.i.T. BV MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201109131448.55823.ftm.van.vugt@foxi.nl> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201109/69 X-Sequence-Number: 31086 Hi, Reading up on the release notes of v9.1 I noticed an 'add documentation for pg_options_to_table()'. Since I didn't know of this function yet and the entry implied that it would be there in earlier versions, I was tempted to try in our current version: postgres=# select version(); version --------------------------------------------------------------------------------------- PostgreSQL 9.0.4 on x86_64-unknown-linux-gnu, compiled by GCC gcc (GCC) 4.3.3, 64-bit (1 row) the following: postgres=# select pg_options_to_table('article'); ERROR: array value must start with "{" or dimension information LINE 1: select pg_options_to_table('article'); ^ => ok, so let's make it an array: postgres=# select pg_options_to_table(ARRAY['article']); => which led to a segfault, from the logs: --3262-2011-09-13 14:28:18 CESTLOG: server process (PID 7427) was terminated by signal 11: Segmentation fault --3262-2011-09-13 14:28:18 CESTLOG: terminating any other active server processes I know, should have read the docs first to see that it expects something else as an argument, but still ;) -- Best, Frank.