Re: Cloning schemas - Mailing list pgsql-general

From Tom Lane
Subject Re: Cloning schemas
Date
Msg-id 63460.1530538220@sss.pgh.pa.us
Whole thread Raw
In response to Cloning schemas  (Łukasz Jarych <jaryszek@gmail.com>)
Responses Re: Cloning schemas  (Łukasz Jarych <jaryszek@gmail.com>)
List pgsql-general
=?UTF-8?Q?=C5=81ukasz_Jarych?= <jaryszek@gmail.com> writes:
> I am trying to use :

> "select * from clone_schema('public','Version8',true) but i am getting
> error:

> "Column "max_value" does not exist.
> LINE 1: SELECT last_value, max_value, start_value, increment_by, min...
> HINT: Maybe you wanted to point to column " "audit_sq.last_value"?
> QUERY: SELECT last_value, max_value, start_value, increment_by, min_value,
> cache_value, log_cnt, is_cycled, is_called FROM public.audit_sq;
> CONTEXT: function PL/pgSQL clone_schema(text,text,boolean), row 66 in
> EXECUTE

I guess audit_sq is a sequence?  It looks to me like this function has
not been taught about the changes in sequence metadata in PG v10.
You need to update it, or talk to its author about an update.

            regards, tom lane


pgsql-general by date:

Previous
From: Łukasz Jarych
Date:
Subject: Re: Cloning schemas
Next
From: Łukasz Jarych
Date:
Subject: Re: Cloning schemas