--- /dev/null
+.. change::
+ :tags: bug, postgresql, reflection
+ :tickets: 11961
+
+ Fixed bug in reflection of table comments where unrelated text would be
+ returned if an entry in the pg_description table happened to share the
+ same oid (objoid) as the table being reflected.
\ No newline at end of file
pg_catalog.pg_class.c.oid
== pg_catalog.pg_description.c.objoid,
pg_catalog.pg_description.c.objsubid == 0,
+ pg_catalog.pg_description.c.classoid
+ == sql.func.cast("pg_catalog.pg_class", REGCLASS),
),
)
.where(self._pg_class_relkind_condition(relkinds))