Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Am Donnerstag, 18. November 2004 22:07 schrieb Josh Berkus:
>> a) new users try just to "psql" as postgres, and get a "no such database
>> postgres";
> This "problem" has been recognized before. I think a possible solution is to
> make psql recognize the error (the error code regime in libpq would have to
> be extended for that),
Extended how? The error you're interested in will come back as
ERRCODE_UNDEFINED_DATABASE.
regards, tom lane