summaryrefslogtreecommitdiff
path: root/contrib/pg_trgm/meson.build
diff options
context:
space:
mode:
authorÁlvaro Herrera2025-08-04 11:26:45 +0000
committerÁlvaro Herrera2025-08-04 11:26:45 +0000
commit126665289fa8e0f7b30165674983f079a5896d91 (patch)
tree5faad13fd683da39dd33dba6dcadd55f6903055b /contrib/pg_trgm/meson.build
parentbca9a1900c87df86dd10d227910050cf85000c53 (diff)
doc: mention unusability of dropped CHECK to verify NOT NULLHEADmaster
It's possible to use a CHECK (col IS NOT NULL) constraint to skip scanning a table for nulls when adding a NOT NULL constraint on the same column. However, if the CHECK constraint is dropped on the same command that the NOT NULL is added, this fails, i.e., makes the NOT NULL addition slow. The best we can do about it at this stage is to document this so that users aren't taken by surprise. (In Postgres 18 you can directly add the NOT NULL constraint as NOT VALID instead, so there's no longer much use for the CHECK constraint, therefore no point in building mechanism to support the case better.) Reported-by: Andrew <psy2000usa@yahoo.com> Reviewed-by: David G. Johnston <david.g.johnston@gmail.com> Discussion: https://postgr.es/m/175385113607.786.16774570234342968908@wrigleys.postgresql.org
Diffstat (limited to 'contrib/pg_trgm/meson.build')
0 files changed, 0 insertions, 0 deletions