Stephan Szabo <[EMAIL PROTECTED]> writes: > That's because the set default uses a pretty ugly hack. It plans the > query with =NULL and then replaces the NULL with the default value's > stored plan info. My first guess is that it's something with this that's > causing the crash.
Yeah, it's failing to allow for the possible need to insert a type coercion step. This code shouldn't be here at all, really --- it should be using build_column_default instead of messing about with the default expression directly. I can fix it, unless you want to... regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster