~ubuntu-branches/ubuntu/natty/postgresql-8.4/natty-security

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-11 16:59:35 UTC
  • mfrom: (5.1.1 karmic)
  • Revision ID: james.westby@ubuntu.com-20090711165935-jfwin6gfrxf0gfsi
Tags: 8.4.0-2
* debian/libpq-dev.install: Ship catalog/genbki.h. (Closes: #536139)
* debian/rules: Drop --enable-cassert for final release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 *
10
10
 *
11
11
 * IDENTIFICATION
12
 
 *        $PostgreSQL: pgsql/src/backend/commands/variable.c,v 1.129 2009/01/01 17:23:40 momjian Exp $
 
12
 *        $PostgreSQL: pgsql/src/backend/commands/variable.c,v 1.130 2009/06/11 14:48:56 momjian Exp $
13
13
 *
14
14
 *-------------------------------------------------------------------------
15
15
 */
268
268
 
269
269
                /*
270
270
                 * Try to parse it.  XXX an invalid interval format will result in
271
 
                 * ereport(ERROR), which is not desirable for GUC.  We did what we
 
271
                 * ereport(ERROR), which is not desirable for GUC.      We did what we
272
272
                 * could to guard against this in flatten_set_variable_args, but a
273
273
                 * string coming in from postgresql.conf might contain anything.
274
274
                 */
290
290
                {
291
291
                        ereport(GUC_complaint_elevel(source),
292
292
                                        (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
293
 
                                         errmsg("invalid interval value for time zone: day not allowed")));
 
293
                        errmsg("invalid interval value for time zone: day not allowed")));
294
294
                        pfree(interval);
295
295
                        return NULL;
296
296
                }
843
843
                /*
844
844
                 * Disallow SET ROLE inside a security definer context.  We need to do
845
845
                 * this because when we exit the context, GUC won't be notified,
846
 
                 * leaving things out of sync.  Note that this test is arranged so
 
846
                 * leaving things out of sync.  Note that this test is arranged so
847
847
                 * that restoring a previously saved setting isn't prevented.
848
848
                 *
849
849
                 * XXX it would be nice to allow this case in future, with the