Re: NOT NULL markings for BKI columns - Mailing list pgsql-hackers

From Andres Freund
Subject Re: NOT NULL markings for BKI columns
Date
Msg-id 20150409113308.GA23636@alap3.anarazel.de
Whole thread Raw
In response to Re: NOT NULL markings for BKI columns  (Jeevan Chalke <jeevan.chalke@enterprisedb.com>)
Responses Re: NOT NULL markings for BKI columns
List pgsql-hackers
> Specifically, this code chunk:
> 
> +                   if (defined $attopt)
> +                   {
> +                       if ($attopt eq 'PG_FORCE_NULL')
> +                       {
> +                           $row{'forcenull'} = 1;
> +                       }
> +                       elsif ($attopt eq 'BKI_FORCE_NOT_NULL')
> +                       {
> +                           $row{'forcenotnull'} = 1;
> +                       }
> +                       else
> +                       {
> +                           die "unknown column option $attopt on column
> $attname"
> +                       }
> +                   }
> 

> We should have BKI_FORCE_NULL instead of PG_FORCE_NULL in the comparison.

Ick. Thanks. Fixed.

Just out of interest and if you can answer: What are you using it for? I
guess it's AS?

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: SSL information view
Next
From: Tom Lane
Date:
Subject: Re: "rejected" vs "returned with feedback" in new CF app