|
9 | 9 | *
|
10 | 10 | *
|
11 | 11 | * IDENTIFICATION
|
12 |
| - * $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.77 2003/05/22 17:13:08 tgl Exp $ |
| 12 | + * $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.78 2003/06/06 16:25:35 tgl Exp $ |
13 | 13 | *
|
14 | 14 | *-------------------------------------------------------------------------
|
15 | 15 | */
|
@@ -750,6 +750,16 @@ assign_session_authorization(const char *value, bool doit, bool interactive)
|
750 | 750 | /* not a saved ID, so look it up */
|
751 | 751 | HeapTupleuserTup;
|
752 | 752 |
|
| 753 | +if (!IsTransactionState()) |
| 754 | +{ |
| 755 | +/* |
| 756 | + * Can't do catalog lookups, so fail. The upshot of this is |
| 757 | + * that session_authorization cannot be set in postgresql.conf, |
| 758 | + * which seems like a good thing anyway. |
| 759 | + */ |
| 760 | +returnNULL; |
| 761 | +} |
| 762 | + |
753 | 763 | userTup=SearchSysCache(SHADOWNAME,
|
754 | 764 | PointerGetDatum(value),
|
755 | 765 | 0,0,0);
|
|