]> granicus.if.org Git - postgresql/commit
Teach PL/pgSQL about partitioned tables.
authorDean Rasheed <dean.a.rasheed@gmail.com>
Wed, 14 Jun 2017 08:00:01 +0000 (09:00 +0100)
committerDean Rasheed <dean.a.rasheed@gmail.com>
Wed, 14 Jun 2017 08:00:01 +0000 (09:00 +0100)
commitd3c3f2b1e25cc96d3078bf4d47a2f58fefb70560
treed425f0b2a69dd5f9cd9d40cf74c8c05a6ba45f3e
parentf356ec57444e42e53474ad5a029cdf6dca195069
Teach PL/pgSQL about partitioned tables.

Table partitioning, introduced in commit f0e44751d7, added a new
relkind - RELKIND_PARTITIONED_TABLE. Update a couple of places in
PL/pgSQL to handle it. Specifically plpgsql_parse_cwordtype() and
build_row_from_class() needed updating in order to make table%ROWTYPE
and table.col%TYPE work for partitioned tables.

Dean Rasheed, reviewed by Amit Langote.

Discussion: https://postgr.es/m/CAEZATCUnNOKN8sLML9jUzxecALWpEXK3a3W7y0PgFR4%2Buhgc%3Dg%40mail.gmail.com
src/pl/plpgsql/src/pl_comp.c
src/test/regress/expected/plpgsql.out
src/test/regress/sql/plpgsql.sql