Re: [GENERAL] Dump/restore indexes and functions in public schema

2012-10-09 Thread Tom Lane
marian krucina writes: > Example: > in PG91: > CREATE FUNCTION function_y(x INT) RETURNS INT AS $$ SELECT $1*$1 $$ > LANGUAGE SQL; > CREATE FUNCTION function_x(x INT) RETURNS INT AS $$ SELECT > function_y($1) $$ LANGUAGE SQL; > CREATE SCHEMA schema_a; > CREATE TABLE schema_a.table_a(i INT); > CREA

Re: [GENERAL] Dump/restore indexes and functions in public schema

2012-10-09 Thread marian krucina
Example: in PG91: CREATE FUNCTION function_y(x INT) RETURNS INT AS $$ SELECT $1*$1 $$ LANGUAGE SQL; CREATE FUNCTION function_x(x INT) RETURNS INT AS $$ SELECT function_y($1) $$ LANGUAGE SQL; CREATE SCHEMA schema_a; CREATE TABLE schema_a.table_a(i INT); CREATE INDEX ON schema_a.table_a(function_x(i

Re: [GENERAL] Dump/restore indexes and functions in public schema

2012-10-08 Thread Tom Lane
marian krucina writes: > pg_upgrade failed on own server, because we used functions from public > schema in index. We install common functions (e.g. postgresql contrib) > to public schema. Tables and indexes are in another schema, and names > of functions without a schema name. Are you sure that