Re: commit changes?

From: Josh Kupershmidt <schmiddy(at)gmail(dot)com>
To: "Tracey, Michelle" <Michelle_Tracey(at)sra(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: commit changes?
Date: 2009-08-24 15:47:42
Message-ID: 4ec1cf760908240847i1387746en42fc2b5ba0e0b4df@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Disclaimer: I don't actually use pgAdmin myself, so my reply is based
on minimal googling.

On Tue, Aug 18, 2009 at 5:57 PM, Tracey,
Michelle<Michelle_Tracey(at)sra(dot)com> wrote:
> 1) I did all the changes as a user who was not the table owner, just one
> with access to the tables.  Could this be why the queries are coming back
> without my columns?

If you lack the necessary privileges to INSERT or UPDATE the table in question,
pgAdmin should show you an error window saying something like
"permission denied for ... ". Otherwise, your modifications should be
committed.

> 2) I’m not aware of an equivalent option in PGAdmin III that performs a
> ‘commit’.  Is this necessary in order for my changes to go through?  The odd
> thing is that I’ve closed my database connection and reopened it, so the
> changes are SOMEWHERE.

pgAdmin runs in "auto commit mode", similar to the behavior of the command-line
psql client. This means each query you execute implicitly runs inside its own
transaction. See this discussion for more info:
http://www.nabble.com/PGAdmin-Auto-commits--td19778774.html

- Josh

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Nagle, Gail A (US SSA) 2009-08-25 01:37:16 Re: [NOVICE] Re: Install from Source On Windows - University of Sydney Research
Previous Message Jignesh Shah 2009-08-24 12:31:19 compile and install trigger