On Insert Do Instead Select.... - Mailing list pgsql-jdbc

From Daniel Jeffery
Subject On Insert Do Instead Select....
Date
Msg-id CAJjQhZCQYp1nBYokc1ySOtXZbDu==gGG=_qPtonh42rhMxeipg@mail.gmail.com
Whole thread Raw
Responses Re: On Insert Do Instead Select....  (Thomas Kellerer <spam_eater@gmx.net>)
List pgsql-jdbc
Is it at all possible for an executed insert statement to return a select statement resultset?

Here's an example table:

CREATE TABLE test (
  id integer NOT NULL DEFAULT nextval( 'test_id_seq'::regclass ),
  column_name text
);


Here's the table's rule:

CREATE RULE replace_test AS ON INSERT TO test WHERE EXISTS( SELECT 1 FROM test WHERE (column_name = NEW.column_name) ) DO INSTEAD SELECT test.id FROM test WHERE column_name = NEW.column_name;


How would I get the JDBC driver to return the resultset?

-- Daniel

pgsql-jdbc by date:

Previous
From: Valentine Gogichashvili
Date:
Subject: Type OID search does not support search_path and multiple schemas
Next
From: Thomas Kellerer
Date:
Subject: Re: On Insert Do Instead Select....