mstdn.maud.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
The place to express your ❤️ more freely. / あなたの「すき」をもっと自由に書き表すための場所。

Administered by:

Server stats:

341
active users

postgresql.org/message-id/CAASwCXeaTgAC0o_eNQwD4SnFagBAdBFBUmjFq
> If you are fully confident you have no NULL values, (snip) and you have checked all the rows in a table are NOT NULL for the column,
would it be completely crazy to just set pg_attribute.attnotnull to
TRUE for the column?
大胆な…。

www.postgresql.orgPostgreSQL: Re: SET NOT NULL [NOT VALID / CONCURRENTLY]?

PostgreSQL: Documentation: 11: 5.5. Modifying Tables postgresql.org/docs/11/ddl-alter.html#DDL-ALTER-ADDING-A-COLUMN
> From PostgreSQL 11, adding a column with a constant default value no longer means that each row of the table needs to be updated when the ALTER TABLE statement is executed. Instead, the default value will be returned the next time the row is accessed, and applied when the table is rewritten, making the ALTER TABLE very fast even on large tables.
ほー。

www.postgresql.orgPostgreSQL: Documentation: 11: 5.5. Modifying Tables