public inbox for [email protected]
help / color / mirror / Atom feedFrom: Adrian Klaver <[email protected]>
To: Paul Foerster <[email protected]>
To: Guillaume Lelarge <[email protected]>
Cc: [email protected]
Subject: Re: libc to libicu via pg_dump/pg_restore?
Date: Thu, 6 Feb 2025 10:44:36 -0800
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
On 2/6/25 09:37, Paul Foerster wrote:
> Hi Guillaume,
>
>> On 6 Feb 2025, at 15:51, Guillaume Lelarge <[email protected]> wrote:
>>
>> You're right. Now I see the "create database" query in your previous email. I should have been more careful, sorry for the noise.
>
> No problem.
>
>> Well, the doc says that --disable-triggers is only relevant for data-only restore, which is not your use case. So you don't need it and it won't help you.
>
> Yes, I found that out too. But it doesn't hurt. 🤣
>
>> Me neither. But another comment. You create the database, so there should be no objects in it. Why do you use the -c, -C, and --if-exists options? Try without them. On a new database, you should only need:
>>
>> pg_restore -d mydb mydb.dump.gz
>
> I need -C because I need ACLs to be recreated too. I tried with -C only, i.e. no -c but that doesn't work for some reason. The --if-exists is a script remnant of my past tries to suppress some messages. I'll try removing that as I rewrote my create database script which runs before importing.
By ACL do you mean roles?
If so roles are global to the cluster not the database, so I am not
seeing -C being relevant.
If not you will need to be more specific about what you are referring to.
>
> Cheers,
> Paul
>
--
Adrian Klaver
[email protected]
view thread (5+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected]
Subject: Re: libc to libicu via pg_dump/pg_restore?
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox