I should have mentioned that I am running postgresql 7.1.2 and 7.1.3 on my boxes at home and at work respectively. Postgresql and PHP have (ahem) issues with upper and lower case table and column names.
I've found I have to stick to all lower case to be safe across all versions of postgresql and php.
It would appear that in 7.1.2, everything is in upper case. This command:
create table Tellers23 (name text, id serial, balance numeric(20,2));
resulted in this output:
NOTICE: CREATE TABLE will create implicit sequence 'tellers23_id_seq' for SERIAL column 'tellers23.id'
NOTICE: CREATE TABLE/UNIQUE will create implicit index 'tellers23_id_key' for table 'tellers23'
\d showed this:
List of relations
tellers23 | table | postgres
tellers23_id_seq | sequence | postgres
I've found that the interaction of php with older versions of postgresql isn't very good, but with php 4.0.5 and postgresql 7.1.2 and up, it's all fixed. User upper or lower, postgres turns it all lower, and php seems case insensetive on my box (RH 7.0 at home/7.1 at work) to table and column names.