Skip to content

Commit

Permalink
Merge pull request #286 from dutow/fixisencrypted
Browse files Browse the repository at this point in the history
Fix pg_tde_is_encrypted: handle tde_heap correctly
  • Loading branch information
dutow authored Sep 23, 2024
2 parents da0a002 + 18f4a8a commit 54a0de4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pg_tde--1.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ SELECT EXISTS (
SELECT 1
FROM pg_catalog.pg_class
WHERE relname = table_name
AND relam = (SELECT oid FROM pg_catalog.pg_am WHERE amname = 'tde_heap_basic')
AND (relam = (SELECT oid FROM pg_catalog.pg_am WHERE amname = 'tde_heap_basic')
OR relam = (SELECT oid FROM pg_catalog.pg_am WHERE amname = 'tde_heap'))
)$$
LANGUAGE SQL;

Expand Down

0 comments on commit 54a0de4

Please sign in to comment.