~aglenyoung/+junk/postgres-9.3-dtrace

« back to all changes in this revision

Viewing changes to src/backend/commands/matview.c

  • Committer: Package Import Robot
  • Author(s): Martin Pitt, Christoph Berg, Martin Pitt
  • Date: 2013-06-26 15:13:32 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20130626151332-p34yjpn0txbdsdzd
Tags: 9.3~beta2-1
[ Christoph Berg ]
* hurd-i386: Ignore testsuite failures so we have a working libpq5 (they
  don't implement semaphores so the server won't even start).
* Mark postgresql-9.3 as beta in the description, suggested by Joshua D.
  Drake.

[ Martin Pitt ]
* New upstream release 9.3 beta2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
static void transientrel_shutdown(DestReceiver *self);
50
50
static void transientrel_destroy(DestReceiver *self);
51
51
static void refresh_matview_datafill(DestReceiver *dest, Query *query,
52
 
                                                                         const char *queryString);
 
52
                                                 const char *queryString);
53
53
 
54
54
/*
55
55
 * SetMatViewPopulatedState
115
115
 */
116
116
void
117
117
ExecRefreshMatView(RefreshMatViewStmt *stmt, const char *queryString,
118
 
                                  ParamListInfo params, char *completionTag)
 
118
                                   ParamListInfo params, char *completionTag)
119
119
{
120
120
        Oid                     matviewOid;
121
121
        Relation        matviewRel;
130
130
         * Get a lock until end of transaction.
131
131
         */
132
132
        matviewOid = RangeVarGetRelidExtended(stmt->relation,
133
 
                                                                                   AccessExclusiveLock, false, false,
134
 
                                                                                   RangeVarCallbackOwnsTable, NULL);
 
133
                                                                                  AccessExclusiveLock, false, false,
 
134
                                                                                  RangeVarCallbackOwnsTable, NULL);
135
135
        matviewRel = heap_open(matviewOid, NoLock);
136
136
 
137
137
        /* Make sure it is a materialized view. */
226
226
refresh_matview_datafill(DestReceiver *dest, Query *query,
227
227
                                                 const char *queryString)
228
228
{
229
 
        List       *rewritten;
 
229
        List       *rewritten;
230
230
        PlannedStmt *plan;
231
231
        QueryDesc  *queryDesc;
232
232
 
295
295
transientrel_startup(DestReceiver *self, int operation, TupleDesc typeinfo)
296
296
{
297
297
        DR_transientrel *myState = (DR_transientrel *) self;
298
 
        Relation transientrel;
 
298
        Relation        transientrel;
299
299
 
300
300
        transientrel = heap_open(myState->transientoid, NoLock);
301
301