Re: Loading test data into a PostgreSQL database

Поиск
Список
Период
Сортировка
От Simon Connah
Тема Re: Loading test data into a PostgreSQL database
Дата
Msg-id iv-642JSwpg0VRDopXDpQs5Y7GphxoqASGIT8z8b8IP0q3bDKuTppvEUXH8ZoDofqPac5JF7mWH8ue1qF9iOdqot2YmWDLV62f42t0gHuVw=@protonmail.com
обсуждение исходный текст
Ответ на Re: Loading test data into a PostgreSQL database  (Jayadevan M <maymala.jayadevan@gmail.com>)
Список 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.
Вложения

В списке pgsql-novice по дате отправления:

Предыдущее
От: Simon Connah
Дата:
Сообщение: Re: Loading test data into a PostgreSQL database
Следующее
От: papapep
Дата:
Сообщение: Re: Loading test data into a PostgreSQL database