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
94f610b1
Commit
94f610b1
authored
Feb 19, 2010
by
Heikki Linnakangas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forbid setval() during recovery. This prevents the PANIC reported by
Erik Rijkers. Patch by Andres Freund.
parent
2f6b4560
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/backend/commands/sequence.c
src/backend/commands/sequence.c
+4
-1
No files found.
src/backend/commands/sequence.c
View file @
94f610b1
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/commands/sequence.c,v 1.16
6 2010/02/14 18:42:14 rhaas
Exp $
* $PostgreSQL: pgsql/src/backend/commands/sequence.c,v 1.16
7 2010/02/19 06:29:19 heikki
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -736,6 +736,9 @@ do_setval(Oid relid, int64 next, bool iscalled)
...
@@ -736,6 +736,9 @@ do_setval(Oid relid, int64 next, bool iscalled)
Buffer
buf
;
Buffer
buf
;
Form_pg_sequence
seq
;
Form_pg_sequence
seq
;
/* setval() writes to database and must be prevented during recovery */
PreventCommandDuringRecovery
();
/* open and AccessShareLock sequence */
/* open and AccessShareLock sequence */
init_sequence
(
relid
,
&
elm
,
&
seqrel
);
init_sequence
(
relid
,
&
elm
,
&
seqrel
);
...
...
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