?
Solved

VASCO, PostgreSQL, IDENTIKEY, PostgreSQL Logs delete

Posted on 2014-02-24
4
Medium Priority
?
711 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 22

Accepted Solution

by:
earth man2 earned 1500 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
By, Vadim Tkachenko. In this article we’ll look at ClickHouse on its one year anniversary.
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.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

770 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