Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
351372e5
Commit
351372e5
authored
Apr 27, 2003
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Department of second thoughts: probably still need an IsTransactionState
test in there...
parent
5f15fa8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
src/backend/utils/mb/mbutils.c
src/backend/utils/mb/mbutils.c
+12
-1
No files found.
src/backend/utils/mb/mbutils.c
View file @
351372e5
...
...
@@ -4,7 +4,7 @@
* (currently mule internal code (mic) is used)
* Tatsuo Ishii
*
* $Header: /cvsroot/pgsql/src/backend/utils/mb/mbutils.c,v 1.4
0 2003/04/27 17:31:25
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/mb/mbutils.c,v 1.4
1 2003/04/27 18:01:46
tgl Exp $
*/
#include "postgres.h"
...
...
@@ -106,6 +106,17 @@ SetClientEncoding(int encoding, bool doit)
return
0
;
}
/*
* If we're not inside a transaction then we can't do catalog lookups,
* so fail. After backend startup, this could only happen if we
* are re-reading postgresql.conf due to SIGHUP --- so basically this
* just constrains the ability to change client_encoding on the fly
* from postgresql.conf. Which would probably be a stupid thing to do
* anyway.
*/
if
(
!
IsTransactionState
())
return
-
1
;
/*
* Look up the conversion functions.
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment