Re: Loading test data into a PostgreSQL database - Mailing list pgsql-novice

From Simon Connah
Subject Re: Loading test data into a PostgreSQL database
Date
Msg-id iv-642JSwpg0VRDopXDpQs5Y7GphxoqASGIT8z8b8IP0q3bDKuTppvEUXH8ZoDofqPac5JF7mWH8ue1qF9iOdqot2YmWDLV62f42t0gHuVw=@protonmail.com
Whole thread Raw
In response to Re: Loading test data into a PostgreSQL database  (Jayadevan M <maymala.jayadevan@gmail.com>)
List pgsql-novice
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Saturday, May 15th, 2021 at 11:49, Jayadevan M <maymala.jayadevan@gmail.com> wrote:


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.

Regards,
Jayadevan

That looks like an interesting thing to look into. I'll have to read through it properly.

Thanks.
Attachment

pgsql-novice by date:

Previous
From: Simon Connah
Date:
Subject: Re: Loading test data into a PostgreSQL database
Next
From: papapep
Date:
Subject: Re: Loading test data into a PostgreSQL database