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
bdbe9c9f
Commit
bdbe9c9f
authored
Oct 17, 2004
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pg_get_indexdef() didn't do quite the right thing with identifying
an index's tablespace.
parent
ca14e3bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
src/backend/utils/adt/ruleutils.c
src/backend/utils/adt/ruleutils.c
+9
-4
No files found.
src/backend/utils/adt/ruleutils.c
View file @
bdbe9c9f
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* back to source text
* back to source text
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/ruleutils.c,v 1.18
2 2004/10/07 20:36:52
tgl Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/ruleutils.c,v 1.18
3 2004/10/17 21:17:27
tgl Exp $
*
*
* This software is copyrighted by Jan Wieck - Hamburg.
* This software is copyrighted by Jan Wieck - Hamburg.
*
*
...
@@ -58,6 +58,7 @@
...
@@ -58,6 +58,7 @@
#include "commands/tablespace.h"
#include "commands/tablespace.h"
#include "executor/spi.h"
#include "executor/spi.h"
#include "lib/stringinfo.h"
#include "lib/stringinfo.h"
#include "miscadmin.h"
#include "nodes/makefuncs.h"
#include "nodes/makefuncs.h"
#include "optimizer/clauses.h"
#include "optimizer/clauses.h"
#include "optimizer/tlist.h"
#include "optimizer/tlist.h"
...
@@ -777,10 +778,14 @@ pg_get_indexdef_worker(Oid indexrelid, int colno, int prettyFlags)
...
@@ -777,10 +778,14 @@ pg_get_indexdef_worker(Oid indexrelid, int colno, int prettyFlags)
* If the index is in a different tablespace from its parent, tell
* If the index is in a different tablespace from its parent, tell
* about that
* about that
*/
*/
if
(
OidIsValid
(
idxrelrec
->
reltablespace
)
&&
if
(
idxrelrec
->
reltablespace
!=
get_rel_tablespace
(
indrelid
))
idxrelrec
->
reltablespace
!=
get_rel_tablespace
(
indrelid
))
{
{
char
*
spcname
=
get_tablespace_name
(
idxrelrec
->
reltablespace
);
char
*
spcname
;
if
(
OidIsValid
(
idxrelrec
->
reltablespace
))
spcname
=
get_tablespace_name
(
idxrelrec
->
reltablespace
);
else
spcname
=
get_tablespace_name
(
MyDatabaseTableSpace
);
if
(
spcname
)
/* just paranoia... */
if
(
spcname
)
/* just paranoia... */
{
{
...
...
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