[COMMITTERS] pgsql: Avoid server crash when worker registration fails at execution t

2015-11-20 Thread Robert Haas
Avoid server crash when worker registration fails at execution time. The previous coding attempts to destroy the DSM in this case, but child nodes might have stored data there and still be holding onto pointers in this case. So don't do that. Also, free the reader array instead of leaking it. E

[COMMITTERS] pgsql: Fix handling of inherited check constraints in ALTER COLUMN TYPE

2015-11-20 Thread Tom Lane
Fix handling of inherited check constraints in ALTER COLUMN TYPE (again). The previous way of reconstructing check constraints was to do a separate "ALTER TABLE ONLY tab ADD CONSTRAINT" for each table in an inheritance hierarchy. However, that way has no hope of reconstructing the check constrain

[COMMITTERS] pgsql: Fix handling of inherited check constraints in ALTER COLUMN TYPE

2015-11-20 Thread Tom Lane
Fix handling of inherited check constraints in ALTER COLUMN TYPE (again). The previous way of reconstructing check constraints was to do a separate "ALTER TABLE ONLY tab ADD CONSTRAINT" for each table in an inheritance hierarchy. However, that way has no hope of reconstructing the check constrain

[COMMITTERS] pgsql: Fix handling of inherited check constraints in ALTER COLUMN TYPE

2015-11-20 Thread Tom Lane
Fix handling of inherited check constraints in ALTER COLUMN TYPE (again). The previous way of reconstructing check constraints was to do a separate "ALTER TABLE ONLY tab ADD CONSTRAINT" for each table in an inheritance hierarchy. However, that way has no hope of reconstructing the check constrain

[COMMITTERS] pgsql: Fix handling of inherited check constraints in ALTER COLUMN TYPE

2015-11-20 Thread Tom Lane
Fix handling of inherited check constraints in ALTER COLUMN TYPE (again). The previous way of reconstructing check constraints was to do a separate "ALTER TABLE ONLY tab ADD CONSTRAINT" for each table in an inheritance hierarchy. However, that way has no hope of reconstructing the check constrain

[COMMITTERS] pgsql: Fix handling of inherited check constraints in ALTER COLUMN TYPE

2015-11-20 Thread Tom Lane
Fix handling of inherited check constraints in ALTER COLUMN TYPE (again). The previous way of reconstructing check constraints was to do a separate "ALTER TABLE ONLY tab ADD CONSTRAINT" for each table in an inheritance hierarchy. However, that way has no hope of reconstructing the check constrain

[COMMITTERS] pgsql: Fix handling of inherited check constraints in ALTER COLUMN TYPE

2015-11-20 Thread Tom Lane
Fix handling of inherited check constraints in ALTER COLUMN TYPE (again). The previous way of reconstructing check constraints was to do a separate "ALTER TABLE ONLY tab ADD CONSTRAINT" for each table in an inheritance hierarchy. However, that way has no hope of reconstructing the check constrain