Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
351372e5
Commit
351372e5
authored
22 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Department of second thoughts: probably still need an IsTransactionState
test in there...
parent
5f15fa8d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/backend/utils/mb/mbutils.c
+12
-1
12 additions, 1 deletion
src/backend/utils/mb/mbutils.c
with
12 additions
and
1 deletion
src/backend/utils/mb/mbutils.c
+
12
−
1
View file @
351372e5
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* (currently mule internal code (mic) is used)
* (currently mule internal code (mic) is used)
* Tatsuo Ishii
* Tatsuo Ishii
*
*
* $Header: /cvsroot/pgsql/src/backend/utils/mb/mbutils.c,v 1.4
0
2003/04/27 1
7:31:25
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/mb/mbutils.c,v 1.4
1
2003/04/27 1
8:01:46
tgl Exp $
*/
*/
#include
"postgres.h"
#include
"postgres.h"
...
@@ -106,6 +106,17 @@ SetClientEncoding(int encoding, bool doit)
...
@@ -106,6 +106,17 @@ SetClientEncoding(int encoding, bool doit)
return
0
;
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.
* Look up the conversion functions.
*/
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment