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
00f325d5
Commit
00f325d5
authored
Feb 03, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Subselects with =, >, etc.
Cleanup for vacuum help, manual page, and error message
parent
f00a9e3e
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
462 additions
and
10 deletions
+462
-10
src/backend/commands/vacuum.c
src/backend/commands/vacuum.c
+4
-2
src/backend/parser/gram.y
src/backend/parser/gram.y
+449
-1
src/bin/psql/psqlHelp.h
src/bin/psql/psqlHelp.h
+4
-3
src/include/catalog/pg_type.h
src/include/catalog/pg_type.h
+2
-2
src/man/vacuum.l
src/man/vacuum.l
+3
-2
No files found.
src/backend/commands/vacuum.c
View file @
00f325d5
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.
59 1998/01/31 04:38:21
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.
60 1998/02/03 19:26:33
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -135,7 +135,9 @@ vacuum(char *vacrel, bool verbose, bool analyze, List *va_spec)
pmem
=
PortalGetVariableMemory
(
vc_portal
);
old
=
MemoryContextSwitchTo
((
MemoryContext
)
pmem
);
Assert
(
va_spec
==
NIL
||
analyze
);
if
(
va_spec
==
NIL
||
analyze
)
elog
(
ERROR
,
"Can't vacuum columns, only tables. You can 'vacuum analyze' columns."
);
foreach
(
le
,
va_spec
)
{
char
*
col
=
(
char
*
)
lfirst
(
le
);
...
...
src/backend/parser/gram.y
View file @
00f325d5
This diff is collapsed.
Click to expand it.
src/bin/psql/psqlHelp.h
View file @
00f325d5
...
...
@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: psqlHelp.h,v 1.
39 1998/01/22 23:05:09
momjian Exp $
* $Id: psqlHelp.h,v 1.
40 1998/02/03 19:27:00
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -292,9 +292,10 @@ set R_PLANS to {'ON' | 'OFF'}"},
"update <class_name> set <attr1>=<expr1>,...<attrN>=<exprN> [from <from_clause>] [where <qual>];"
},
{
"vacuum"
,
"vacuum the database, i.e. cleans out deleted records, updates statistics"
,
"vacuum [verbose] [analyze]
\n
\
"\
vacuum [verbose] [analyze] [table]
\n
\
\t
or
\n
\
vacuum [verbose]
[analyze] table [analyze [(attr1, ... attrN)]
];"
},
vacuum [verbose]
analyze [table [(attr1, ... attrN)]
];"
},
{
NULL
,
NULL
,
NULL
}
/* important to keep a NULL terminator
* here! */
};
src/include/catalog/pg_type.h
View file @
00f325d5
...
...
@@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pg_type.h,v 1.
29 1998/02/03 01:53:24
momjian Exp $
* $Id: pg_type.h,v 1.
30 1998/02/03 19:27:17
momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
...
...
@@ -366,7 +366,7 @@ DESCR("limited-range ISO-format date and time");
#define USE_ATTTYPMOD(typeid) ((typeid) == BPCHAROID || (typeid) == VARCHAROID)
#define VARLENA_FIXED_SIZE(
typeid) ((typeid) == BPCHAROID
)
#define VARLENA_FIXED_SIZE(
attr) (false && (attr)->atttypid == BPCHAROID && (attr)->atttypmod > 0
)
/*
* prototypes for functions in pg_type.c
...
...
src/man/vacuum.l
View file @
00f325d5
.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
.\" $Header: /cvsroot/pgsql/src/man/Attic/vacuum.l,v 1.
7 1998/01/11 22:18:01
momjian Exp $
.\" $Header: /cvsroot/pgsql/src/man/Attic/vacuum.l,v 1.
8 1998/02/03 19:27:30
momjian Exp $
.TH VACUUM SQL 11/05/95 PostgreSQL PostgreSQL
.SH NAME
vacuum - vacuum a database
.SH SYNOPSIS
.nf
\fBvacuum [verbose] [analyze] [\fPtable [(column,...)]\fB]\fP
\fBvacuum [verbose] [analyze] [\fPtable\fB]\fP
\fBvacuum [verbose] analyze [\fPtable [(column,...)]\fB]\fP
.fi
.SH DESCRIPTION
.BR Vacuum
...
...
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