Unix Technical Forum

BUG #3656: cannot truncate table in PGSQL from Java

This is a discussion on BUG #3656: cannot truncate table in PGSQL from Java within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 3656 Logged by: Eli Email address: eli.milanova@gmail.com PostgreSQL version: 8.0.1 ...


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, 11:10 AM
Eli
 
Posts: n/a
Default BUG #3656: cannot truncate table in PGSQL from Java


The following bug has been logged online:

Bug reference: 3656
Logged by: Eli
Email address: eli.milanova@gmail.com
PostgreSQL version: 8.0.1
Operating system: Windows
Description: cannot truncate table in PGSQL from Java
Details:

Hi!
I'm trying to make "truncate table [tableName]" from Java but it doesn't
work. I'm dropping all foreign keys for the database from system catalog
"pg_constraint", I'm disabling triggers and dropping rules and after all
these I'm trying to truncate my table but there's the following mistake:
"INFO: Error while deleting information from t_accounts
ERROR: cannot truncate a table referenced in a foreign key constraint".
If anyone has an idea... please share it

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

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 10:37 PM.


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