Re: Read data from text file - Mailing list pgsql-novice

From Frank Bax
Subject Re: Read data from text file
Date
Msg-id 4A1B2BA5.6030009@sympatico.ca
Whole thread Raw
In response to Read data from text file  ("Just E. Mail" <justemail@imwell-usa.com>)
Responses Re: Read data from text file
Re: Read data from text file
List pgsql-novice
Just E. Mail wrote:
> What is the command to create a  table from a pre-written description
> text file?
>
> In mysql it is:
>
> %mysql sample_db < create_xxxx.sql
>
> In postgresql, there are schema and I want to create the DB in a
> particulat schema!



When I have multiple schemas in one database; I generally have a user
that "owns" each schema, as in:

      CREATE USER kevin;
      CREATE SCHEMA kevin AUTHORIZATION kevin;

Then I process the sql commands with:

% psql db_kevin kevin < create-kevin.sql



pgsql-novice by date:

Previous
From: Ron Arts
Date:
Subject: I don't understand this explain output
Next
From: Luiz Eduardo Cantanhede Neri
Date:
Subject: Re: I don't understand this explain output