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
65ea4f67
Commit
65ea4f67
authored
Apr 06, 2000
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow vacuum of temporary tables
parent
69294592
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
src/backend/commands/vacuum.c
src/backend/commands/vacuum.c
+10
-3
No files found.
src/backend/commands/vacuum.c
View file @
65ea4f67
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.14
5 2000/04/06 00:29:51 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.14
6 2000/04/06 18:12:07 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -42,6 +42,7 @@
#include "utils/portal.h"
#include "utils/relcache.h"
#include "utils/syscache.h"
#include "utils/temprel.h"
#ifndef HAVE_GETRUSAGE
#include "rusagestub.h"
...
...
@@ -315,14 +316,20 @@ vc_getrels(NameData *VacRelP)
if
(
NameStr
(
*
VacRelP
))
{
/*
* we could use the cache here, but it is clearer to use scankeys
* for both vacuum cases, bjm 2000/01/19
*/
char
*
nontemp_relname
;
/* We must re-map temp table names bjm 2000-04-06 */
if
((
nontemp_relname
=
get_temp_rel_by_username
(
NameStr
(
*
VacRelP
)))
==
NULL
)
nontemp_relname
=
NameStr
(
*
VacRelP
);
ScanKeyEntryInitialize
(
&
key
,
0x0
,
Anum_pg_class_relname
,
F_NAMEEQ
,
PointerGetDatum
(
NameStr
(
*
VacRelP
)
));
PointerGetDatum
(
nontemp_relname
));
}
else
{
...
...
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