Skip site navigation (1) Skip section navigation (2)

pgsql: Improve plpgsql's ability to cope with rowtypes containing

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Improve plpgsql's ability to cope with rowtypes containing
Date: 2009-08-06 20:44:32
Message-ID: 20090806204432.19F8875331E@cvs.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Improve plpgsql's ability to cope with rowtypes containing dropped columns,
by supporting conversions in places that used to demand exact rowtype match.

Since this issue is certain to come up elsewhere (in fact, already has,
in ExecEvalConvertRowtype), factor out the support code into new core
functions for tuple conversion.  I chose to put these in a new source
file since heaptuple.c is already overly long.

Heavily revised version of a patch by Pavel Stehule.

Modified Files:
--------------
    pgsql/src/backend/access/common:
        Makefile (r1.25 -> r1.26)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/common/Makefile?r1=1.25&r2=1.26)
    pgsql/src/backend/executor:
        execQual.c (r1.250 -> r1.251)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/executor/execQual.c?r1=1.250&r2=1.251)
    pgsql/src/include/nodes:
        execnodes.h (r1.205 -> r1.206)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/nodes/execnodes.h?r1=1.205&r2=1.206)
    pgsql/src/pl/plpgsql/src:
        nls.mk (r1.9 -> r1.10)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpgsql/src/nls.mk?r1=1.9&r2=1.10)
        pl_exec.c (r1.247 -> r1.248)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpgsql/src/pl_exec.c?r1=1.247&r2=1.248)
    pgsql/src/test/regress/expected:
        plpgsql.out (r1.72 -> r1.73)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/expected/plpgsql.out?r1=1.72&r2=1.73)
    pgsql/src/test/regress/sql:
        plpgsql.sql (r1.60 -> r1.61)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/sql/plpgsql.sql?r1=1.60&r2=1.61)

Added Files:
-----------
    pgsql/src/backend/access/common:
        tupconvert.c (r1.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/common/tupconvert.c?rev=1.1&content-type=text/x-cvsweb-markup)
    pgsql/src/include/access:
        tupconvert.h (r1.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/access/tupconvert.h?rev=1.1&content-type=text/x-cvsweb-markup)

pgsql-committers by date

Next:From: User BmomjianDate: 2009-08-07 00:39:11
Subject: pg-migrator - pg_migrator: Update pg_migrator invalidation tests to
Previous:From: Magnus HaganderDate: 2009-08-06 12:04:50
Subject: Re: Re: [COMMITTERS] pgsql: Reserve the shared memory region during backend startup on

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group