Solved

VASCO, PostgreSQL, IDENTIKEY, PostgreSQL Logs delete

Posted on 2014-02-24
4
649 Views
Last Modified: 2014-02-27
i installed identikey server.
DB size is more now..
trying to delete the unwanted logs..
when i try to delete i get error msg.
please help how to solve this.

--------------------------
pgAdmin III
---------------------------
An error has occurred:

ERROR:  update or delete on table "vdsauditmsg" violates foreign key constraint "vdsauditmsgfield0" on table "vdsauditmsgfield"
DETAIL:  Key (vdstimestamp,vdsamid)=(2014-01-27 08:02:21.186,0D08804C8762AC61E4170195E73E985C) is still referenced from table "vdsauditmsgfield".

---------------------------
OK  
---------------------------
0
Comment
Question by:Skumar_CCSA
  • 3
4 Comments
 
LVL 22

Accepted Solution

by:
earth man2 earned 500 total points
ID: 39887623
DELETE FROM vdsauditmsg CASCADE;
0
 

Author Comment

by:Skumar_CCSA
ID: 39887789
Can you please share any screenshot if you have
0
 

Author Comment

by:Skumar_CCSA
ID: 39887865
I tried this option it did not work....
If we delete the foreign key from the properties then it works, but I am not able to add the key back....

When I select the root folder and see the script, I see the constraint Restriction for both update and delete.

How I do I change the option...can you help?
0
 

Author Closing Comment

by:Skumar_CCSA
ID: 39892103
Thanks ....
Your point helped to to me navigate and find the issue...I remove the foreign key..after that i was able to delete it....
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Best database to use for Maps is PostgreSQL. This is an open source database. Comes as a package with most Linux OS. For more info visit the following site: http://www.postgresql.org/ (http://www.postgresql.org/) This requires some add-o…
Many developers have database experience, but are new to PostgreSQL. It has some truly inspiring capabilities. I have several years' experience with Microsoft's SQL Server. When I began working with MySQL, I wanted a quick-reference to MySQL (htt…
Steps to create a PostgreSQL RDS instance in the Amazon cloud. We will cover some of the default settings and show how to connect to the instance once it is up and running.
This video discusses moving either the default database or any database to a new volume.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now