From: | Simon Connah <simon(dot)n(dot)connah(at)protonmail(dot)com> |
---|---|
To: | "pgsql-novice(at)lists(dot)postgresql(dot)org" <pgsql-novice(at)lists(dot)postgresql(dot)org> |
Subject: | Loading test data into a PostgreSQL database |
Date: | 2021-05-14 19:11:46 |
Message-ID: | O2VViuum_GZUdON4Mu0l9-5yKa00VIgQSkofE4DOwpR3I59u0GRKiP4YUULpEltxXAAIt82ii-SqXsJUKEiNNR3HNRDHkHfyCyiMrOeeECg=@protonmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
Hi,
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?
Can I make a CSV file and import it into the database? Or do I have to write some custom SQL to handle that aspect? Or is there an easier method I should be using? Or could I add some test data to the extension itself?
Simon.
From | Date | Subject | |
---|---|---|---|
Next Message | Bill Ross | 2021-05-14 19:27:02 | Re: Loading test data into a PostgreSQL database |
Previous Message | Pól Ua Laoínecháin | 2021-05-14 12:03:18 | Re: Transaction ISOLATION LEVEL - have I missed something? |