Search Postgresql Archives

Re: Install scripts?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Charl Gerber wrote:
> DROP DATABASE db_name IF EXISTS   (<--- is there something similar in
> Postgre? Like the CREATE OR REPLACE FUNCTION)

No, you just go ahead and ignore the error.

> CREATE DATABASE db_name;
>
> USE db_name;

\connect db_name

> SOURCE users.sql;

\i users.sql

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@xxxxxxxxxxxxxx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux