Re: Loading test data into a PostgreSQL database

Поиск
Список
Период
Сортировка
От Jayadevan M
Тема Re: Loading test data into a PostgreSQL database
Дата
Msg-id CAFS1N4iRKov4UsPfzDT7aVeDRoCF6HBDURS0dJdVu1OzLUqWGQ@mail.gmail.com
обсуждение исходный текст
Ответ на Loading test data into a PostgreSQL database  (Simon Connah <simon.n.connah@protonmail.com>)
Ответы Re: Loading test data into a PostgreSQL database  (Simon Connah <simon.n.connah@protonmail.com>)
Список pgsql-novice


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

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

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