txid: install dummy empty txid.sql on 8.3
authorMarko Kreen <markokr@gmail.com>
Fri, 11 Apr 2008 12:32:10 +0000 (12:32 +0000)
committerMarko Kreen <markokr@gmail.com>
Fri, 11 Apr 2008 12:32:10 +0000 (12:32 +0000)
sql/txid/Makefile
sql/txid/txid.internal.sql [new file with mode: 0644]

index d3e25b8fe2d044dcec2fec0d2a759af3a6642325..a64f2a3657762f4e9c4fdb722208848bd42a26e0 100644 (file)
@@ -13,7 +13,11 @@ endif
 
 ifeq ($(pg83),true)  # we have 8.3 with internal txid
 
-# nothing to do
+# install empty txid.sql
+DATA_built = txid.sql
+include $(PGXS)
+txid.sql: txid.internal.sql
+       cp $< $@
 
 else # 8.2 or 8.1
 #
@@ -29,6 +33,9 @@ DOCS = README.txid
 DATA_built = txid.sql
 EXTRA_CLEAN = txid.sql.in
 
+# PGXS build procedure
+include $(PGXS)
+
 ifeq ($(pg82),true)
 # 8.2 tracks epoch internally
 TXID_SQL = txid.std.sql
@@ -36,10 +43,6 @@ else
 # 8.1 needs epoch-tracking code
 TXID_SQL = txid.std.sql txid.schema.sql
 endif # ! 8.2
-endif # ! 8.3
-
-# PGXS build procedure
-include $(PGXS)
 
 # additional deps
 txid.o: txid.h
@@ -48,6 +51,8 @@ epoch.o: txid.h
 txid.sql.in: $(TXID_SQL)
        cat $(TXID_SQL) > $@
 
+endif # ! 8.3
+
 test: install
        make installcheck || { less regression.diffs; exit 1; }
 
diff --git a/sql/txid/txid.internal.sql b/sql/txid/txid.internal.sql
new file mode 100644 (file)
index 0000000..42f958b
--- /dev/null
@@ -0,0 +1 @@
+-- txid is included in 8.3