Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
test_ext8--1.0.sql22 linesDownload Raw Back to extension
1/* src/test/modules/test_extensions/test_ext8--1.0.sql */2 3-- complain if script is sourced in psql, rather than via CREATE EXTENSION4\echo Use "CREATE EXTENSION test_ext8" to load this file. \quit5 6-- create some random data type7create domain posint as int check (value > 0);8 9-- use it in regular and temporary tables and functions10 11create table ext8_table1 (f1 posint);12 13create temp table ext8_temp_table1 (f1 posint);14 15create function ext8_even (posint) returns bool as16  'select ($1 % 2) = 0' language sql;17 18create function pg_temp.ext8_temp_even (posint) returns bool as19  'select ($1 % 2) = 0' language sql;20 21-- we intentionally don't drop the temp objects before exiting22 
codekingpro/portable-devtools · Team Ai