comment doesn't match code

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: comment doesn't match code
Date: 2015-06-10 11:18:07
Message-ID: CA+TgmoawJb7YKsoNTwr=uCDi9Cd=f4SFFs=YAVK1fY39Dh7Uyg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

/*
* ALTER TABLE INHERIT
*
* Add a parent to the child's parents. This verifies that all the columns and
* check constraints of the parent appear in the child and that they have the
* same data types and expressions.
*/
static void
ATPrepAddInherit(Relation child_rel)
{
if (child_rel->rd_rel->reloftype)
ereport(ERROR,
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
errmsg("cannot change inheritance of typed table")));
}

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kouhei Kaigai 2015-06-10 11:33:29 Re: [idea] table partition + hash join
Previous Message Michael Paquier 2015-06-10 11:13:10 Re: Missing XLOG_DEBUG check in AdvanceXLInsertBuffer()?