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
a668b7ac
Commit
a668b7ac
authored
Jun 05, 1997
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for large objects and case sensitivity, from Raymond Toy.
parent
ce2fcd01
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/backend/storage/large_object/inv_api.c
src/backend/storage/large_object/inv_api.c
+3
-3
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.c
+3
-3
No files found.
src/backend/storage/large_object/inv_api.c
View file @
a668b7ac
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.
9 1997/01/18 16:14:04
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.
10 1997/06/05 22:59:29
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -109,8 +109,8 @@ inv_create(int flags)
...
@@ -109,8 +109,8 @@ inv_create(int flags)
file_oid
=
newoid
()
+
1
;
file_oid
=
newoid
()
+
1
;
/* come up with some table names */
/* come up with some table names */
sprintf
(
objname
,
"
X
inv%d"
,
file_oid
);
sprintf
(
objname
,
"
x
inv%d"
,
file_oid
);
sprintf
(
indname
,
"
X
inx%d"
,
file_oid
);
sprintf
(
indname
,
"
x
inx%d"
,
file_oid
);
if
(
SearchSysCacheTuple
(
RELNAME
,
PointerGetDatum
(
objname
),
if
(
SearchSysCacheTuple
(
RELNAME
,
PointerGetDatum
(
objname
),
0
,
0
,
0
)
!=
NULL
)
{
0
,
0
,
0
)
!=
NULL
)
{
...
...
src/bin/pg_dump/pg_dump.c
View file @
a668b7ac
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.
29 1997/06/02 02:51:53 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.
30 1997/06/05 22:59:45 momjian
Exp $
*
*
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
*
*
...
@@ -1068,7 +1068,7 @@ getTables(int *numTables)
...
@@ -1068,7 +1068,7 @@ getTables(int *numTables)
ordering by oid is important so that we always process the parent
ordering by oid is important so that we always process the parent
tables before the child tables when traversing the tblinfo*
tables before the child tables when traversing the tblinfo*
we ignore tables that start with
X
inv */
we ignore tables that start with
x
inv */
res
=
PQexec
(
g_conn
,
"begin"
);
res
=
PQexec
(
g_conn
,
"begin"
);
if
(
!
res
||
if
(
!
res
||
...
@@ -1081,7 +1081,7 @@ getTables(int *numTables)
...
@@ -1081,7 +1081,7 @@ getTables(int *numTables)
sprintf
(
query
,
sprintf
(
query
,
"SELECT oid, relname, relarch, relkind, relacl from pg_class "
"SELECT oid, relname, relarch, relkind, relacl from pg_class "
"where (relkind = 'r' or relkind = 'S') and relname !~ '^pg_' "
"where (relkind = 'r' or relkind = 'S') and relname !~ '^pg_' "
"and relname !~ '^
X
inv' order by oid;"
);
"and relname !~ '^
x
inv' order by oid;"
);
res
=
PQexec
(
g_conn
,
query
);
res
=
PQexec
(
g_conn
,
query
);
if
(
!
res
||
if
(
!
res
||
...
...
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