|
10 | 10 | * Written by Peter Eisentraut <peter_e@gmx.net>. |
11 | 11 | * |
12 | 12 | * IDENTIFICATION |
13 | | - * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.316 2006/04/25 14:09:15 momjian Exp $ |
| 13 | + * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.317 2006/04/25 14:11:56 momjian Exp $ |
14 | 14 | * |
15 | 15 | *-------------------------------------------------------------------- |
16 | 16 | */ |
|
32 | 32 | #include"catalog/namespace.h" |
33 | 33 | #include"catalog/pg_type.h" |
34 | 34 | #include"commands/async.h" |
35 | | -#include"commands/prepare.h" |
36 | 35 | #include"commands/variable.h" |
37 | 36 | #include"commands/vacuum.h" |
38 | 37 | #include"executor/executor.h" |
|
54 | 53 | #include"postmaster/bgwriter.h" |
55 | 54 | #include"postmaster/syslogger.h" |
56 | 55 | #include"postmaster/postmaster.h" |
57 | | -#include"storage/backendid.h" |
58 | 56 | #include"storage/bufmgr.h" |
59 | 57 | #include"storage/fd.h" |
60 | 58 | #include"storage/freespace.h" |
|
63 | 61 | #include"tcop/tcopprot.h" |
64 | 62 | #include"utils/array.h" |
65 | 63 | #include"utils/builtins.h" |
66 | | -#include"utils/hsearch.h" |
67 | 64 | #include"utils/memutils.h" |
68 | 65 | #include"utils/pg_locale.h" |
69 | | -#include"utils/portal.h" |
70 | | -#include"utils/syscache.h" |
71 | 66 | #include"pgstat.h" |
72 | 67 |
|
| 68 | + |
73 | 69 | #ifndefPG_KRB_SRVTAB |
74 | 70 | #definePG_KRB_SRVTAB "" |
75 | 71 | #endif |
@@ -4653,33 +4649,8 @@ GetPGVariableResultDesc(const char *name) |
4653 | 4649 | void |
4654 | 4650 | ResetPGVariable(constchar*name) |
4655 | 4651 | { |
4656 | | -charnamespaceName[NAMEDATALEN]; |
4657 | | -OidnamespaceId; |
4658 | | - |
4659 | 4652 | if (pg_strcasecmp(name,"all")==0) |
4660 | | -/* resetting all GUC variables */ |
4661 | 4653 | ResetAllOptions(); |
4662 | | -elseif(pg_strcasecmp(name,"connection")==0) |
4663 | | -{ |
4664 | | -ResetAllOptions(); |
4665 | | - |
4666 | | -/* Clean temp-tables */ |
4667 | | -snprintf(namespaceName,sizeof(namespaceName),"pg_temp_%d", |
4668 | | -MyBackendId); |
4669 | | -namespaceId=GetSysCacheOid(NAMESPACENAME, |
4670 | | -CStringGetDatum(namespaceName),0,0,0); |
4671 | | -RemoveTempRelations(namespaceId); |
4672 | | - |
4673 | | -DropAllPreparedStatements(); |
4674 | | - |
4675 | | -Async_UnlistenAll(); |
4676 | | - |
4677 | | -/* Delete cursors, including WITH HOLD */ |
4678 | | -PortalHashTableDeleteAll(); |
4679 | | - |
4680 | | -if (IsTransactionBlock()) |
4681 | | -UserAbortTransactionBlock(); |
4682 | | -} |
4683 | 4654 | else |
4684 | 4655 | set_config_option(name, |
4685 | 4656 | NULL, |
|