summaryrefslogtreecommitdiffstats
path: root/contrib/spi/autoinc--1.0.sql
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/spi/autoinc--1.0.sql')
-rw-r--r--contrib/spi/autoinc--1.0.sql9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/spi/autoinc--1.0.sql b/contrib/spi/autoinc--1.0.sql
new file mode 100644
index 0000000..22721e0
--- /dev/null
+++ b/contrib/spi/autoinc--1.0.sql
@@ -0,0 +1,9 @@
+/* contrib/spi/autoinc--1.0.sql */
+
+-- complain if script is sourced in psql, rather than via CREATE EXTENSION
+\echo Use "CREATE EXTENSION autoinc" to load this file. \quit
+
+CREATE FUNCTION autoinc()
+RETURNS trigger
+AS 'MODULE_PATHNAME'
+LANGUAGE C;