Are foreign key constraints necessary?



Are foreign key constraints necessary?..

Answer / Janardan Singh Yadav

Foreign key constraints in PostgreSQL help maintain data integrity by ensuring relationships between tables are consistent. They are not always necessary but are often used to prevent orphan records and ensure data accuracy.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Postgre Interview Questions

Are postgres table names case sensitive?

1 Answers  


Can you have a composite foreign key?

1 Answers  


How to select distinct on multiple columns?

1 Answers  


What is ora2pg?

1 Answers  


How do you edit data in pgadmin?

1 Answers  


Can postgres use multiple indexes?

1 Answers  


What does mvcc mean?

1 Answers  


Is postgresql faster than mysql?

1 Answers  


Explain multi version concurrency control.

1 Answers  


What is the port number for postgresql?

1 Answers  


Do indexes speed up queries?

1 Answers  


Provide an explanation about write ahead logging?

1 Answers  


Categories