Re: How do I create a database if I can't connect to it?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Merlin Moncure" <mmoncure(at)gmail(dot)com>
Cc: "David Fetter" <david(at)fetter(dot)org>, "Paolo Victor" <paolovictor(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: How do I create a database if I can't connect to it?
Date: 2007-07-31 04:51:46
Message-ID: 6599.1185857506@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Merlin Moncure" <mmoncure(at)gmail(dot)com> writes:
> On 7/27/07, David Fetter <david(at)fetter(dot)org> wrote:
>>> For a short description, I'll just show the sequence of commands I'm trying
>>> to execute:
>>
>> This looks like a mistake. Unless you plan to develop the PostgreSQL
>> code itself, you should not be installing from source.

> I don't necessarily agree with this advice.

Me either. I was about to complain about this bit:

>>> paolo(at)box> createdb foo -p 5435

which is in fact not valid switch syntax for createdb --- the dbname has
to come after optional switches --- and experimentation shows that every
createdb since about version 7.3 has rejected it. So either Paolo
wasn't giving us a verbatim transcript, or he had a really ancient
version of createdb in his path. Subsequent discussion suggests a
permissions issue but I'm not convinced that was all there was to it.
In any case "don't install from source" is bad/irrelevant advice.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Robert Treat 2007-07-31 05:12:15 Re: [GENERAL] PostgreSQL, PGDAY, PGParty and OSCON 2007 Rocked!
Previous Message Michael Glaesemann 2007-07-31 04:32:53 Re: [NOVICE] alter table table add column