codekingpro/portable-devtools
114k
1/* src/test/modules/test_extensions/test_ext_cine--1.0.sql */2-- complain if script is sourced in psql, rather than via CREATE EXTENSION3\echo Use "CREATE EXTENSION test_ext_cine" to load this file. \quit4 5--6-- CREATE IF NOT EXISTS is an entirely unsound thing for an extension7-- to be doing, but let's at least plug the major security hole in it.8--9 10CREATE COLLATION IF NOT EXISTS ext_cine_coll11 ( LC_COLLATE = "POSIX", LC_CTYPE = "POSIX" );12 13CREATE MATERIALIZED VIEW IF NOT EXISTS ext_cine_mv AS SELECT 42 AS f1;14 15CREATE FOREIGN DATA WRAPPER ext_cine_fdw;16 17CREATE SERVER IF NOT EXISTS ext_cine_srv FOREIGN DATA WRAPPER ext_cine_fdw;18 19CREATE SCHEMA IF NOT EXISTS ext_cine_schema;20 21CREATE SEQUENCE IF NOT EXISTS ext_cine_seq;22 23CREATE TABLE IF NOT EXISTS ext_cine_tab1 (x int);24 25CREATE TABLE IF NOT EXISTS ext_cine_tab2 AS SELECT 42 AS y;26 