Search Postgresql Archives

Re: Strange phenomenon

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/15/2010 03:36 PM, Martial Braem wrote:

2) On day one, I store data in my application data tables and in the
logging table (transactional data). At the end of the day, I extract the
data from the database for daily reporting (the ultimate proof that the
transactions are actually committed). No problem there.

Is this extraction done via pg_dump? psql? Via a separate java program? Or could it be happening using the same connection used to insert the data initially?

4) On day six, there’s no trace of any data from day two to day five,
except that the sequence, used in the application has not been reset.

That's exactly what I'd expect to see if all the work for those days was done within a single transaction, which was then rolled back after a tcp/ip connection timeout caused the backend to disconnect or something like that.

That cannot be the case if you retrieved the data via another connection, since uncommitted data is never visible to other transactions in PostgreSQL. If you don't know for sure that you retrieved it using a different connection than you inserted it with, though, then this is a possibility. Anything within the same jvm instance could potentially be using the same connection, depending on how your environment is set up.

--
Craig Ringer

--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux