Re: Two novice questions - Mailing list pgsql-novice

From Tom Lane
Subject Re: Two novice questions
Date
Msg-id 16142.979525105@sss.pgh.pa.us
Whole thread Raw
In response to Two novice questions  (Jonathan Chum <jchum@techdevelopers.com>)
Responses Re: Two novice questions  (Jonathan Chum <jchum@techdevelopers.com>)
List pgsql-novice
Jonathan Chum <jchum@techdevelopers.com> writes:
> PostgreSQL said: ERROR: DROP DATABASE: Database "blazeboard" is being
> accessed by other users

It's difficult to see how you could get this error unless there is at
least one backend connected to the target database.  Check for
background processes you've forgotten about, etc etc.

> My second question is that I have created a table with a column, FID.
> However, when I SELECT FID FROM table, it will result:

> blazeboard=# SELECT FID FROM forum;
> ERROR:  Attribute 'fid' not found

What does "\d forum" show as the column name?

If you created the table along the lines of
    create table forum ("FID" int, ...);
then all subsequent references to that column name will have to be
double-quoted as well.  Unquoted names are implicitly folded to lower
case ... quoted ones are not.

            regards, tom lane

pgsql-novice by date:

Previous
From: Mike Castle
Date:
Subject: Re: Two novice questions
Next
From: ashley
Date:
Subject: starting postmaster