public inbox for [email protected]
help / color / mirror / Atom feedFrom: Jayadevan M <[email protected]>
To: Simon Connah <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: Loading test data into a PostgreSQL database
Date: Sat, 15 May 2021 16:19:13 +0530
Message-ID: <CAFS1N4iRKov4UsPfzDT7aVeDRoCF6HBDURS0dJdVu1OzLUqWGQ@mail.gmail.com> (raw)
In-Reply-To: <O2VViuum_GZUdON4Mu0l9-5yKa00VIgQSkofE4DOwpR3I59u0GRKiP4YUULpEltxXAAIt82ii-SqXsJUKEiNNR3HNRDHkHfyCyiMrOeeECg=@protonmail.com>
References: <O2VViuum_GZUdON4Mu0l9-5yKa00VIgQSkofE4DOwpR3I59u0GRKiP4YUULpEltxXAAIt82ii-SqXsJUKEiNNR3HNRDHkHfyCyiMrOeeECg=@protonmail.com>
>
>
>
> I'm currently working on a project using PostgreSQL 13 and using an
> extension with CREATE EXTENSION to create the database. However, if I want
> to make certain changes to the database, I have to drop the extension and
> then re-create it (I don't want to update the version number for the
> initial release). So, what is the normal way of creating some test data to
> put in the database because obviously, when you do DROP EXTENSION, it
> deletes everything?
>
Will using a template database work? Have your extension and other objects
there. When you create your actual database, use the other one as the
template.
https://www.postgresql.org/docs/13/manage-ag-templatedbs.html
Regards,
Jayadevan
view thread (7+ 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]
Subject: Re: Loading test data into a PostgreSQL database
In-Reply-To: <CAFS1N4iRKov4UsPfzDT7aVeDRoCF6HBDURS0dJdVu1OzLUqWGQ@mail.gmail.com>
* 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