Database creation script - Mailing list pgsql-sql

From Dani Castaños
Subject Database creation script
Date
Msg-id 46CC1EF6.5030608@gmail.com
Whole thread Raw
List pgsql-sql
Hi all!

I'm building a database creation script, and i want to modularize it.
Now, I'm trying something like:

/* - Customer creation script - Version : 1.0.0
*/

\set ON_ERROR_STOP 1
\set AUTOCOMMIT off

BEGIN;

\i languages_and_countries.sql
\i app_1.sql
\i app_2.sql[...]

END;

What do you think about this way of doing?
Which is the best option to do it?

Thanks in advance!

Dani Castaños




pgsql-sql by date:

Previous
From: "Christian Kindler"
Date:
Subject: Re: Solution to retrieve first and last row for each minute
Next
From: Steve Midgley
Date:
Subject: Re: raw data into table process