documenting forbidden expressions in column defaults - Mailing list pgsql-hackers

From Amit Langote
Subject documenting forbidden expressions in column defaults
Date
Msg-id 2059e8f2-e6e6-7a9f-0de8-11eed291e641@lab.ntt.co.jp
Whole thread Raw
List pgsql-hackers
Hi.

The description of DEFAULT in the documentation currently says:

"The value is any variable-free expression (subqueries and
cross-references to other columns in the current table are not allowed)."

But the value cannot be an aggregate expression, a window function, or a
set-returning function either, so maybe we should list these items too?

Attached is a patch that fixes the text in two places where the above
description appears.

Thanks,
Amit

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Partitioning with temp tables is broken
Next
From: Daniel Gustafsson
Date:
Subject: pg_verify_checksums review