~ubuntu-branches/ubuntu/oneiric/postgresql-9.1/oneiric-updates

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-06-14 09:53:29 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110614095329-kerawur7tb6p8s71
Tags: 9.1~beta2-1
* New upstream beta release.
* Drop 03-cmsgcred-size.patch, fixed upstream.
* debian/postgresql-9.1.install: Install new pg_basebackup translations.
* debian/control: Fix the server-dev dependency to p-common to also work for
  backports.
* debian/watch: Fix for beta versions.
* debian/copyright: Add pointers to GPL and Artistic licenses for the Perl
  terms.
* debian/postgresql-9.1.preinst: Fail the package upgrade early when
  upgrading from beta-1, as the DB format changed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1090
1090
void
1091
1091
ProcessCompletedNotifies(void)
1092
1092
{
 
1093
        MemoryContext caller_context;
1093
1094
        bool            signalled;
1094
1095
 
1095
1096
        /* Nothing to do if we didn't send any notifications */
1103
1104
         */
1104
1105
        backendHasSentNotifications = false;
1105
1106
 
 
1107
        /*
 
1108
         * We must preserve the caller's memory context (probably MessageContext)
 
1109
         * across the transaction we do here.
 
1110
         */
 
1111
        caller_context = CurrentMemoryContext;
 
1112
 
1106
1113
        if (Trace_notify)
1107
1114
                elog(DEBUG1, "ProcessCompletedNotifies");
1108
1115
 
1135
1142
 
1136
1143
        CommitTransactionCommand();
1137
1144
 
 
1145
        MemoryContextSwitchTo(caller_context);
 
1146
 
1138
1147
        /* We don't need pq_flush() here since postgres.c will do one shortly */
1139
1148
}
1140
1149