From: Raymond O'Donnell <rod@iol.ie>
To: Archana K N <archanakknn@gmail.com>
To: PostgreSQLPHP <pgsql-php@postgresql.org>
Subject: Re: Data missing from table........
Date: Wed, 22 Jan 2014 18:00:03 +0000
Message-ID: <52E00723.4010408@iol.ie> (raw)
In-Reply-To: <CACa6=i2EXZii48wdyycViB5eK+swEc2Bk9Ljw5k24+4uscZHPg@mail.gmail.com>
References: <CACa6=i32XmvOjFv1LFpAM7chQyaotqHDRLrRB9mwYJ6Qsenj6g@mail.gmail.com>
<52DFB99E.1050901@iol.ie>
<52DFBAF3.3060300@iol.ie>
<CACa6=i2EXZii48wdyycViB5eK+swEc2Bk9Ljw5k24+4uscZHPg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-php>
On 22/01/2014 13:02, Archana K N wrote:
> Hi,
>
> I am working on Debian OS. Using Python for scripting and Psycopg2 as
> interface for postgres.
Hi Archana,
Please keep your replies on-list. Also, you'd probably be better off to
post to pgsql-general; this list is for PHP.
>
> For adding columns:-
> ALTER TABLE name ADD COLUMN;
>
> For Updation:-
>
> UPDATE tbl_name SET col=value FROM(SELECT col FROM tabl2) AS somnam
> WHERE condition;
>
> For Insertion:-
>
> INSERT INTO table_name VALUES();
>
>
> I tried to update another column , when I retrieved that specific one ,
> say updated col-1 and retrieved it, then all the retrieved value was
>
> blank. Tried thru script then the updated columns where 'None'.
>
> In .conf files I just made the 'LISTEN ADDRESS to * and added a new line
> in hba.conf say 'host all all ip/mask md5. thats all.
I don't see anything there that would cause data to disappear.
I'm not familiar with either Python or Psycopg2, but could something be
rolling back the transaction after the UPDATE?
The other thought I had was that you were inadvertently connecting to a
different database - probably a silly question, but could that be possible?
Ray.
--
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie
--
Sent via pgsql-php mailing list (pgsql-php@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: rod@iol.ie, archanakknn@gmail.com
Subject: Re: Data missing from table........
In-Reply-To: <52E00723.4010408@iol.ie>
References: <CACa6=i32XmvOjFv1LFpAM7chQyaotqHDRLrRB9mwYJ6Qsenj6g@mail.gmail.com> <52DFB99E.1050901@iol.ie> <52DFBAF3.3060300@iol.ie> <CACa6=i2EXZii48wdyycViB5eK+swEc2Bk9Ljw5k24+4uscZHPg@mail.gmail.com> <52E00723.4010408@iol.ie>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox