Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does PostgreSQL support data encryption features at transactional and the table level of database? If yes, how?

Oracle provides this via database and network encryption. Oracle provides encryption at table, tablespace level. Does PostgreSQL also supports this?

share|improve this question

This is a complex question and you will get a complex answer.

There is no reason you can't put a tablespace on an encrypted filesystem. Additionally pgcrypto gives you a toolkit for doing data encryption but data encryption in the db is hard and there are too many ways keys can be disclosed to do this without review and assistance. This isn't at the table level but rather at the value level, and pgcrypto gives you a plethora of options there. Please see the pgcrypto documentation for details.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.