Hi, is there a way to have PostgreSQL insert a new row into a table during a SELECT query if no row is found by that query? -- Best regards, Michal mailto:mpaluchowski@xxxxxxxxx ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq