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
a3e2bc73
Commit
a3e2bc73
authored
Dec 22, 1999
by
Hiroshi Inoue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
to live in a transaction before access to db during backend startup.
parent
3e991585
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+7
-3
src/backend/utils/init/postinit.c
src/backend/utils/init/postinit.c
+4
-1
No files found.
src/backend/tcop/postgres.c
View file @
a3e2bc73
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.13
7 1999/11/16 06:13:35 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.13
8 1999/12/22 00:07:15 inoue
Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
...
...
@@ -1474,7 +1474,11 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
on_shmem_exit
(
remove_all_temp_relations
,
NULL
);
parser_input
=
makeStringInfo
();
/* initialize input buffer */
{
MemoryContext
oldcontext
=
MemoryContextSwitchTo
(
TopMemoryContext
);
parser_input
=
makeStringInfo
();
/* initialize input buffer */
MemoryContextSwitchTo
(
oldcontext
);
}
/*
* Send this backend's cancellation info to the frontend.
...
...
@@ -1495,7 +1499,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
if
(
!
IsUnderPostmaster
)
{
puts
(
"
\n
POSTGRES backend interactive interface "
);
puts
(
"$Revision: 1.13
7 $ $Date: 1999/11/16 06:13:3
5 $
\n
"
);
puts
(
"$Revision: 1.13
8 $ $Date: 1999/12/22 00:07:1
5 $
\n
"
);
}
/*
...
...
src/backend/utils/init/postinit.c
View file @
a3e2bc73
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.5
3 1999/11/21 01:58:21 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.5
4 1999/12/22 00:07:16 inoue
Exp $
*
* NOTES
* InitPostgres() is the function called from PostgresMain
...
...
@@ -546,6 +546,9 @@ InitPostgres(char *name) /* database name */
*/
InitCatalogCache
();
/* start a new transaction here before access to db */
if
(
!
bootstrap
)
StartTransactionCommand
();
/*
* Set ourselves to the proper user id and figure out our postgres
* user id. If we ever add security so that we check for valid
...
...
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