Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XhMig-0005ef-BT for pgsql-bugs@arkaria.postgresql.org; Thu, 23 Oct 2014 18:02:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XhMie-0003VV-M5 for pgsql-bugs@arkaria.postgresql.org; Thu, 23 Oct 2014 18:02:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xgzhd-0003Ew-Ol for pgsql-bugs@postgresql.org; Wed, 22 Oct 2014 17:28:05 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xgzha-0005jh-JU for pgsql-bugs@postgresql.org; Wed, 22 Oct 2014 17:28:04 +0000 MIME-Version: 1.0 Subject: BUG #11761: range_in dosn't work via direct functional call To: pgsql-bugs@postgresql.org From: olegjobs@mail.ru Date: Wed, 22 Oct 2014 17:27:03 +0000 Message-ID: <20141022172703.2662.31056@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.2 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 11761 Logged by: Oleg Email address: olegjobs@mail.ru PostgreSQL version: 9.3.2 Operating system: Ubuntu 64 14.04 Description: This function test_ext_get_range(cstring) returns int4range: Datum test_ext_get_range(PG_FUNCTION_ARGS) { char *ts = PG_GETARG_CSTRING(0); return DirectFunctionCall3(range_in, CStringGetDatum(ts), ObjectIdGetDatum(3904), Int32GetDatum(0); } In psql: select test_ext_get_range('[1,1]'); error: connection to the server was lost. it seems to me that some memory problems because of "The range I/O functions need a bit more cached info than other range * functions, so they store a RangeIOData struct in fn_extra, not just a * pointer to a type cache entry. " -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs