From: | Łukasz Jarych <jaryszek(at)gmail(dot)com> |
---|---|
To: | Melvin Davidson <melvin6925(at)gmail(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-04 18:27:33 |
Message-ID: | CAGv31of_kectEtF63zSgPDFO1a3jCarhTEtXnCFM9H2kkOn50Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi Melvin,
thank you very much. Awesome!!!
Best,
Jacek
wt., 3 lip 2018 o 15:34 Melvin Davidson <melvin6925(at)gmail(dot)com> napisał(a):
>
>
>
>> ERROR: BŁĄD: you cannot add to column "TopoToVersion_ID" DETAIL: Column
>> "TopoToVersion_ID" is an identity column defined as GENERATED ALWAYS. HINT:
>> Use OVERRIDING SYSTEM VALUE to override. CONTEXT: wyrażenie SQL "INSERT
>> INTO version4.t_topotoversions SELECT * FROM public.t_topotoversions;"
>> funkcja PL/pgSQL clone_schema(text,text,boolean), wiersz 212 w EXECUTE
>>
>
> Lukasz,
> That ERROR is occuring because you choose to copy the data (include_recs =
> TRUE).
> I have added OVERRIDING SYSTEM VALUE to the insert statement and attached
> revised version.
> CAUTION: The value of TopoToVersion_ID and any other IDENTITY columns may
> be changed.
>
> The revised version is attached.
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Melvin Davidson | 2018-07-04 18:38:53 | Re: Cloning schemas |
Previous Message | Boblitz John | 2018-07-04 17:07:19 | RE: Unable to Connect to DB Instance |