mirror of
https://github.com/postgres/postgres.git
synced 2025-11-03 09:13:20 +03:00
Remove pg_attribute.attcacheoff column
The column is no longer needed as the offset is now cached in the
CompactAttribute struct per commit 5983a4cff.
Author: David Rowley
Reviewed-by: Andres Freund, Victor Yegorov
Discussion: https://postgr.es/m/CAApHDvrBztXP3yx=NKNmo3xwFAFhEdyPnvrDg3=M0RhDs+4vYw@mail.gmail.com
This commit is contained in:
@@ -397,8 +397,7 @@ WHERE pc.relkind IN ('r', 't', 'm') and
|
||||
SELECT a1.attrelid, a1.attname
|
||||
FROM pg_attribute as a1
|
||||
WHERE a1.attrelid = 0 OR a1.atttypid = 0 OR a1.attnum = 0 OR
|
||||
a1.attcacheoff != -1 OR a1.attinhcount < 0 OR
|
||||
(a1.attinhcount = 0 AND NOT a1.attislocal);
|
||||
a1.attinhcount < 0 OR (a1.attinhcount = 0 AND NOT a1.attislocal);
|
||||
|
||||
-- Cross-check attnum against parent relation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user