Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au> writes:
> It should be done, otherwise you cannot copy and paste foreign key
> creation code from the psql output :)
Since when was that a design goal for psql's \d output? We had better
revert the entire pretty-printing patch if you expect this sort of thing
to work reliably. I thought the point of \d formatting was to be
readable, not to be technically the exact same SQL you'd need to enter.
regards, tom lane