createdb comments - Mailing list pgsql-bugs

From Nigel J. Andrews
Subject createdb comments
Date
Msg-id Pine.LNX.4.21.0205012304230.9945-100000@ponder.fairway2k.co.uk
Whole thread Raw
Responses Re: createdb comments
List pgsql-bugs
Head of development branch (7.3devel) has a problem applying a comment to a
database at the sametime as the database is created  using the createdb
utility.

The error message states the problem:

    pgsql-current-test$ createdb testdb Test
    CREATE DATABASE
    ERROR:  Database comments may only be applied to the current database
    createdb: comment creation failed (database was created)

The database is created but the comment does indeed fail for the reason given,
as illustrated by:

    template1=# \c template1
    You are now connected to database template1.
    template1=# comment on database testdb is 'Test';
    ERROR:  Database comments may only be applied to the current database
    template1=# \c testdb
    You are now connected to database testdb.
    testdb=# comment on database testdb is 'Test';
    COMMENT

Sorry if this isn't news.


--
Nigel J. Andrews
Director

---
Logictree Systems Limited
Computer Consultants

pgsql-bugs by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: Bug #654: lower and to_ascii don't work with UTF8
Next
From: R Ravishankar
Date:
Subject: Re: Bug #651: Time difference of 30 in while reading in timestamp