title: PostgreSQL trigger not returning anything
body: <p>I have a PostgreSQL trigger on create that basically redirects inserts into sub-tables. Once I insert the record, I want to ABORT the request as to avoid duplicate data. The only way (that I know of) to do this is to return <code>NULL</code> in the trigger. The problem is that I need the record to be returned so I can get the ID. If I return <code>NULL</code>, I get ... <code>NULL</code>.</p>
  
  <p>Any idea how I can have a trigger abort an operation while still returning something other than <code>NULL</code>?</p>