createdb comments

From: "Nigel J(dot) Andrews" <nandrews(at)investsystems(dot)co(dot)uk>
To: pgsql-bugs(at)postgresql(dot)org
Subject: createdb comments
Date: 2002-05-01 22:10:13
Message-ID: Pine.LNX.4.21.0205012304230.9945-100000@ponder.fairway2k.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-general

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

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message R Ravishankar 2002-05-02 04:51:28 Re: Bug #651: Time difference of 30 in while reading in timestamp
Previous Message Edward Pilipczuk 2002-05-01 05:25:55 Re: Bug #640: ECPG: inserting float numbers

Browse pgsql-general by date

  From Date Subject
Next Message Neil Conway 2002-05-01 22:12:40 Re: aggregate on zero rows slow?
Previous Message postgres 2002-05-01 21:52:47 Re: What popular, large commercial websites run