I submitted a solution here once in the past, please use search before asking. the exception handling will be quicker in general, cos you won't have to test for existence of the table before every insert. -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general