Skip to content
Snippets Groups Projects
Commit 392b187a authored by Tom Lane's avatar Tom Lane
Browse files

Remove DROPs from contrib object creation scripts, per Dave Page.

parent b3f2f6eb
No related branches found
No related tags found
No related merge requests found
...@@ -15,9 +15,8 @@ RETURNS int4[] ...@@ -15,9 +15,8 @@ RETURNS int4[]
AS 'MODULE_PATHNAME','int_agg_final_array' AS 'MODULE_PATHNAME','int_agg_final_array'
LANGUAGE 'C' IMMUTABLE STRICT; LANGUAGE 'C' IMMUTABLE STRICT;
-- The aggration funcion. -- The aggregate function itself
-- uses the above functions to create an array of integers from an aggregation. -- uses the above functions to create an array of integers from an aggregation.
DROP AGGREGATE int_array_aggregate(int4);
CREATE AGGREGATE int_array_aggregate ( CREATE AGGREGATE int_array_aggregate (
BASETYPE = int4, BASETYPE = int4,
SFUNC = int_agg_state, SFUNC = int_agg_state,
......
-- Adjust this setting to control where the objects get created. -- Adjust this setting to control where the objects get created.
SET search_path = public; SET search_path = public;
DROP TYPE pgstattuple_type CASCADE;
CREATE TYPE pgstattuple_type AS ( CREATE TYPE pgstattuple_type AS (
table_len BIGINT, -- physical table length in bytes table_len BIGINT, -- physical table length in bytes
tuple_count BIGINT, -- number of live tuples tuple_count BIGINT, -- number of live tuples
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment