Unix Technical Forum

BUG #2289: insert into tables not working

This is a discussion on BUG #2289: insert into tables not working within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 2289 Logged by: Abhilash Krishnan Email address: abhi_742@hotmail.com PostgreSQL version: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 10:47 AM
Abhilash Krishnan
 
Posts: n/a
Default BUG #2289: insert into tables not working


The following bug has been logged online:

Bug reference: 2289
Logged by: Abhilash Krishnan
Email address: abhi_742@hotmail.com
PostgreSQL version: 8.1.2
Operating system: windows 2000
Description: insert into tables not working
Details:

I am having an application using java, jsp, struts and hibernate with a
backend of postgresql. Here, during some operations, although the insert
query is generated by hibernate and can be seen in the console, the data is
not getting inserted into the database. Any idea why it happens ?

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 10:47 AM
Michael Fuhr
 
Posts: n/a
Default Re: BUG #2289: insert into tables not working

On Tue, Feb 28, 2006 at 09:24:35AM +0000, Abhilash Krishnan wrote:
> I am having an application using java, jsp, struts and hibernate with a
> backend of postgresql. Here, during some operations, although the insert
> query is generated by hibernate and can be seen in the console, the data is
> not getting inserted into the database. Any idea why it happens ?


Did you commit the transaction that performed the insert? The
effects of a transaction's operations aren't visible to other
transactions until the transaction commits. Also, if a transaction
encounters an error its operations will be rolled back unless you
protect them with savepoints.

--
Michael Fuhr

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 10:47 AM
Michael Fuhr
 
Posts: n/a
Default Re: BUG #2289: insert into tables not working

[Please copy the mailing list on replies.]

On Wed, Mar 01, 2006 at 08:55:29AM -0800, Abhilash Krishnan wrote:
> ya.... the transactions are commited.... also no error has been shown in any
> of the operations....


How are you determining that data isn't getting inserted? If you
do a select in the same transaction as the inserts, do you see the
data? If you commit the transaction and then start a new transaction,
does a select in the new transaction see the data? If concurrent
transactions aren't able to see the data even after it's committed,
what isolation level are those transactions using? A SERIALIZABLE
transaction won't see data committed by other transactions after
its snapshot has been taken.

If none of this helps then could you post a series of steps that
somebody could use to duplicate the problem?

--
Michael Fuhr

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:09 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com