]> granicus.if.org Git - postgresql/commit
Allow forcing nullness of columns during bootstrap.
authorAndres Freund <andres@anarazel.de>
Sat, 21 Feb 2015 21:25:49 +0000 (22:25 +0100)
committerAndres Freund <andres@anarazel.de>
Sat, 21 Feb 2015 21:31:54 +0000 (22:31 +0100)
commiteb68379c38202180bc8e33fb9987284e314b7fc8
tree0e6dcc59b1fabfe9c63b0d0377607acee7dad025
parent0627eff3602c0ce0e8358d48ddb3ffa73963e4d0
Allow forcing nullness of columns during bootstrap.

Bootstrap determines whether a column is null based on simple builtin
rules. Those work surprisingly well, but nonetheless a few existing
columns aren't set correctly. Additionally there is at least one patch
sent to hackers where forcing the nullness of a column would be helpful.

The boostrap format has gained FORCE [NOT] NULL for this, which will be
emitted by genbki.pl when BKI_FORCE_(NOT_)?NULL is specified for a
column in a catalog header.

This patch doesn't change the marking of any existing columns.

Discussion: 20150215170014.GE15326@awork2.anarazel.de
doc/src/sgml/bki.sgml
src/backend/bootstrap/bootparse.y
src/backend/bootstrap/bootscanner.l
src/backend/bootstrap/bootstrap.c
src/backend/catalog/Catalog.pm
src/backend/catalog/genbki.pl
src/backend/utils/Gen_fmgrtab.pl
src/include/bootstrap/bootstrap.h
src/include/catalog/genbki.h