Re: Slowly making progress

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Ron Watkins <rwatki(at)gmail(dot)com>
Cc: pgsql-novice(at)lists(dot)postgresql(dot)org
Subject: Re: Slowly making progress
Date: 2018-02-23 17:06:24
Message-ID: CAKFQuwY32TfUnX+wQYHWmzYvNu8ZdpQfMnspbc-ieK7CNOtBkQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Fri, Feb 23, 2018 at 9:51 AM, Ron Watkins <rwatki(at)gmail(dot)com> wrote:

> Ok, got the default database (postgres) running.
>
> Trying to create a “user” database for the application…
>
> Can anyone spot what im doing wrong here?
>
>
>
> createdb -e -D /pgsql/DEV -E UTF8 -l en_US.UTF-8 -O postgres DEV
>
> CREATE DATABASE "DEV" OWNER postgres TABLESPACE "/pgsql/DEV" ENCODING
> 'UTF8' LC_COLLATE 'en_US.UTF-8' LC_CTYPE 'en_US.UTF-8';
>
> createdb: database creation failed: ERROR: tablespace "/pgsql/DEV" does
> not exist
>
>
The TABLESPACE clause wants the name of an existing tablespace - not a
non-existence path. Tablespaces are objects in their own right.

​https://www.postgresql.org/docs/9.6/static/sql-createtablespace.html

​https://www.postgresql.org/docs/9.6/static/sql-createdatabase.html

David J.

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message koimoi 2018-02-23 17:25:27 Re: Incremental and decremental count based on a date
Previous Message Ron Watkins 2018-02-23 16:51:25 Slowly making progress