Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 9B35D152A2F9 for ; Fri, 27 Jul 2012 17:15:04 -0300 (ADT) Received: from news.hub.org ([200.46.204.72]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SuqwA-0008CS-RW for pgsql-jdbc@postgresql.org; Fri, 27 Jul 2012 20:15:04 +0000 Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.5/8.14.5) with ESMTP id q6RKEmVG056503 for ; Fri, 27 Jul 2012 17:14:48 -0300 (ADT) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.5/8.14.5/Submit) id q6RJmLQU036251 for pgsql-jdbc@postgresql.org; Fri, 27 Jul 2012 16:48:21 -0300 (ADT) (envelope-from news) From: Brady Mathis X-Newsgroups: pgsql.interfaces.jdbc Subject: Opening view that uses a function - empty column Date: Fri, 27 Jul 2012 12:46:20 -0700 (PDT) Organization: http://groups.google.com Lines: 28 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Complaints-To: groups-abuse@google.com Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=205.168.223.3; posting-account=0Pn6hwoAAAAFMfiMGGYB3MQVLeGq7kK1 User-Agent: G2/1.0 X-Received-Bytes: 1655 To: pgsql-jdbc@postgresql.org X-Pg-Spam-Score: -0.0 (/) X-Archive-Number: 201207/42 X-Sequence-Number: 23140 Two step inquiry: 1) I have created a function that will parse a value out of XML stored in the pg_largeobject table using xpath, like so: CREATE OR REPLACE FUNCTION extract_from_extended(text, bigint) RETURNS text AS $BODY$ select translate( xpath(...) ); $BODY$ LANGUAGE sql VOLATILE COST 100; 2) I then created a view that calls this function as part of the query, like so: CREATE OR REPLACE VIEW encounter AS SELECT md.account_id, extract_from_extended('externalEncounterID'::text, md.id) AS external_id... FROM app.menu_data md, app.menu_structure ms WHERE...; When I open this view via JDBC, there is no data in the column that is filled by the function call. Any thoughts? TIA, BRady