Added project configuration files for MSVC 2010 32/64bit.
This commit is contained in:
@ -108,17 +108,17 @@ LANGUAGE sql STABLE STRICT;
|
||||
|
||||
-- includes not only PRIMARY KEYS but also UNIQUE NOT NULL keys
|
||||
CREATE VIEW reorg.primary_keys AS
|
||||
SELECT indrelid, (reorg.array_accum(indexrelid))[1] AS indexrelid
|
||||
FROM (SELECT indrelid, indexrelid FROM pg_index
|
||||
WHERE indisunique
|
||||
AND 0 <> ALL(indkey)
|
||||
AND NOT EXISTS(
|
||||
SELECT 1 FROM pg_attribute
|
||||
WHERE attrelid = indrelid
|
||||
AND attnum = ANY(indkey)
|
||||
AND NOT attnotnull)
|
||||
ORDER BY indrelid, indisprimary DESC, indnatts, indkey) tmp
|
||||
GROUP BY indrelid;
|
||||
SELECT indrelid, (reorg.array_accum(indexrelid))[1] AS indexrelid
|
||||
FROM (SELECT indrelid, indexrelid FROM pg_index
|
||||
WHERE indisunique
|
||||
AND 0 <> ALL(indkey)
|
||||
AND NOT EXISTS(
|
||||
SELECT 1 FROM pg_attribute
|
||||
WHERE attrelid = indrelid
|
||||
AND attnum = ANY(indkey)
|
||||
AND NOT attnotnull)
|
||||
ORDER BY indrelid, indisprimary DESC, indnatts, indkey) tmp
|
||||
GROUP BY indrelid;
|
||||
|
||||
CREATE VIEW reorg.tables AS
|
||||
SELECT R.oid::regclass AS relname,
|
||||
|
@ -1181,6 +1181,7 @@ swap_heap_or_index_files(Oid r1, Oid r2)
|
||||
|
||||
#if PG_VERSION_NUM < 80400
|
||||
|
||||
/* XXX: You might need to add PGDLLIMPORT into your miscadmin.h. */
|
||||
extern PGDLLIMPORT bool allowSystemTableMods;
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user