Closed jobinau closed 2 months ago
Here is the test case
CREATE TABLE test_tde (id SERIAL, t VARCHAR(32), PRIMARY KEY(id)) USING pg_tde;
INSERT INTO test_tde (t) VALUES ('foobar'),('barfoo');
postgres=# SELECT relname,relfilenode,pg_relation_filepath(relfilenode) FROM pg_class WHERE relname in ('test_enc','test_tde','test_basic'); relname | relfilenode | pg_relation_filepath ------------+-------------+---------------------- test_tde | 16502 | base/5/16502 test_enc | 16488 | base/5/16488 test_basic | 16495 | base/5/16495
ALTER TABLE test_tde SET ACCESS METHOD heap;
postgres=# SELECT relname,relfilenode,pg_relation_filepath(relfilenode) FROM pg_class WHERE relname in ('test_enc','test_tde','test_basic'); relname | relfilenode | pg_relation_filepath ------------+-------------+---------------------- test_tde | 16508 | test_enc | 16488 | base/5/16488 test_basic | 16495 | base/5/16495 (3 rows)
Observe the NULL string returned by the pg_relation_filepath
pg_relation_filepath
Will be tracked here https://perconadev.atlassian.net/browse/PG-825
Here is the test case
Observe the NULL string returned by the
pg_relation_filepath