On Wed Nov 25, 2015 at 10:45:07AM +0000, Simon Slavin wrote:
>
> REFERENCES foreign-table ( column-name [[, column-name]]) ...
>
> It would be useful if rather than having to specify a column name for
> each item one could specify a fixed value (or perhaps an expression,
> though that might be more complicated to handle). This means that,
> if some customers were dealers and others weren't you could ensure
> you gave discounts only to dealers using
>
> REFERENCES customers ('dealer', id)
Which column in the customers table should contain the fixed value or
expression?
--
Mark Lawrence