Re: Cloning schemas

From: Łukasz Jarych <jaryszek(at)gmail(dot)com>
To: vnoagbodji(at)amplify-nation(dot)com, "pgsql-general(at)postgresql(dot)org >> PG-General Mailing List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Cloning schemas
Date: 2018-07-02 12:24:09
Message-ID: CAGv31ofj0556_RKt+NcbM5R0WJrrD-=hMZ9C_bYDctg8WEdkqQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi ,

thank you !

You have right:

[image: image.png]

Hmm i thought that i am creating this table " audit_sq " within clone
schema and this function is complete.

How can i fix this?

Best,
Jacek

pon., 2 lip 2018 o 13:51 Victor Noagbodji <vnoagbodji(at)amplify-nation(dot)com>
napisał(a):

> Hello,
>
> Can you check if the table "audit_sq" has the column "max_value"?
>
> On Jul 2, 2018, at 7:30 AM, Łukasz Jarych <jaryszek(at)gmail(dot)com> wrote:
>
> Hi,
>
> i am trying to use postgresql clone schema function:
>
>
> https://www.postgresql.org/message-id/CANu8FiwiBiAjYgdehYBkJcSRFd6ZFFnN5kDJE7TG4rad5BNXZQ%40mail.gmail.com
>
> I created function clone_schema in public schema:
>
> <image.png>
>
>
> 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
> SQL state: 42703
> Can anyone help?
>
> Best,
> Jacek
>
>
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2018-07-02 13:30:20 Re: Cloning schemas
Previous Message Łukasz Jarych 2018-07-02 11:30:43 Cloning schemas