I have been using MySQL for quite some time, and I decided to learn Postgres. The transition was not terrible, but today I ran into a problem:
I have an administrator account, postgres
and a user specifically for this application, tv
. For convenience, I changed some rows in the table under the administrator account. The website will not reflect any changes to the database.
After I blamed the various caching strategies for an hour, I finally ran psql
as the tv
user and noticed that none of the lines in it reflected the changes made during postgres
login. Based on the background of MySQL, this behavior was completely incomprehensible to me.
In short: is this a feature, or am I misinterpreting something? And is there a way to make the database different?
Thanks for any help.
Update: The following are examples of commands:
[12:23:04] blake $ sudo -u postgres psql -d teevee
psql (9.1.3)
Type "help" for help.
teevee = # SELECT COUNT (*) FROM episode;
count
-------
1
(1 row)
[12:23:25] blake $ psql -U tv -d teevee -h localhost -W
Password for user tv:
psql (9.1.3)
SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256)
Type "help" for help.
teevee => SELECT COUNT (*) FROM episode;
count
-------
176
(1 row)
Blake source share