~ubuntu-branches/ubuntu/hardy/postgresql-8.4/hardy-backports

« back to all changes in this revision

Viewing changes to src/backend/nodes/copyfuncs.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-01-03 08:57:10 UTC
  • mfrom: (5.3.10 sid)
  • Revision ID: james.westby@ubuntu.com-20110103085710-v9u121v7u7oq8qca
Tags: 8.4.6-1~hardy1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 * Portions Copyright (c) 1994, Regents of the University of California
16
16
 *
17
17
 * IDENTIFICATION
18
 
 *        $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.432.2.1 2009/10/06 00:55:34 tgl Exp $
 
18
 *        $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.432.2.2 2010/08/18 15:22:09 tgl Exp $
19
19
 *
20
20
 *-------------------------------------------------------------------------
21
21
 */
22
22
 
23
23
#include "postgres.h"
24
24
 
 
25
#include "miscadmin.h"
25
26
#include "nodes/plannodes.h"
26
27
#include "nodes/relation.h"
27
28
#include "utils/datum.h"
78
79
 
79
80
        COPY_SCALAR_FIELD(commandType);
80
81
        COPY_SCALAR_FIELD(canSetTag);
 
82
        COPY_SCALAR_FIELD(transientPlan);
81
83
        COPY_NODE_FIELD(planTree);
82
84
        COPY_NODE_FIELD(rtable);
83
85
        COPY_NODE_FIELD(resultRelations);
1697
1699
        COPY_NODE_FIELD(ph_var);
1698
1700
        COPY_BITMAPSET_FIELD(ph_eval_at);
1699
1701
        COPY_BITMAPSET_FIELD(ph_needed);
 
1702
        COPY_BITMAPSET_FIELD(ph_may_need);
1700
1703
        COPY_SCALAR_FIELD(ph_width);
1701
1704
 
1702
1705
        return newnode;
3436
3439
        if (from == NULL)
3437
3440
                return NULL;
3438
3441
 
 
3442
        /* Guard against stack overflow due to overly complex expressions */
 
3443
        check_stack_depth();
 
3444
 
3439
3445
        switch (nodeTag(from))
3440
3446
        {
3441
3447
                        /*