From: | "Albin, Lloyd P" <lalbin(at)scharp(dot)org> |
---|---|
To: | "seapug(at)postgresql(dot)org" <seapug(at)postgresql(dot)org> |
Subject: | Re: Trigger Functions |
Date: | 2013-02-13 23:55:49 |
Message-ID: | AE011E7AE62117479360E1E2BD341F4E02BDB9@adama.fhcrc.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | seapug |
Julie,
Question 1: Did I miss / overlook the use of a switch/setting?
This all looks good to me. I created a table and tested everything.
Question 2: Is there an optimal place to put standard functions that many databases will call?
Some people use the public schema, so that you don't have to prepend a schema name, just like with the built in command. We prefer to create a tools schema that we have two sql scripts, one to install and one to update. If you did not want to prepend with the tools schema, you could set the search path to include the tools schema, although we don't do this.
Once we upgrade to Postgres 9.2, we will make the tools schema an extension. Extensions also support upgrade scripts. See:
http://www.postgresql.org/docs/9.2/static/extend-extensions.html
Especially section 35.15.5 for an example of writing an SQL-only extension.
Having never a basic SQL extension, this would make an interesting talk sometime.
Lloyd
From | Date | Subject | |
---|---|---|---|
Next Message | Albin, Lloyd P | 2013-02-14 00:46:37 | Re: Trigger Functions |
Previous Message | Julie Bernhardt | 2013-02-13 20:47:34 | Trigger Functions |