Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 784def9

Browse files
committed
More EXTEND INDEX removal.
Martijn van Oosterhout
1 parent 40db52a commit 784def9

File tree

5 files changed

+5
-51
lines changed

5 files changed

+5
-51
lines changed

src/backend/nodes/copyfuncs.c

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* Portions Copyright (c) 1994, Regents of the University of California
1616
*
1717
* IDENTIFICATION
18-
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.147 2001/07/12 18:02:59 tgl Exp $
18+
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.148 2001/07/16 19:07:37 momjian Exp $
1919
*
2020
*-------------------------------------------------------------------------
2121
*/
@@ -2037,18 +2037,6 @@ _copyCommentStmt(CommentStmt *from)
20372037
return newnode;
20382038
}
20392039

2040-
static ExtendStmt *
2041-
_copyExtendStmt(ExtendStmt *from)
2042-
{
2043-
ExtendStmt *newnode = makeNode(ExtendStmt);
2044-
2045-
newnode->idxname = pstrdup(from->idxname);
2046-
Node_Copy(from, newnode, whereClause);
2047-
Node_Copy(from, newnode, rangetable);
2048-
2049-
return newnode;
2050-
}
2051-
20522040
static FetchStmt *
20532041
_copyFetchStmt(FetchStmt *from)
20542042
{
@@ -2796,9 +2784,6 @@ copyObject(void *from)
27962784
case T_CommentStmt:
27972785
retval = _copyCommentStmt(from);
27982786
break;
2799-
case T_ExtendStmt:
2800-
retval = _copyExtendStmt(from);
2801-
break;
28022787
case T_FetchStmt:
28032788
retval = _copyFetchStmt(from);
28042789
break;

src/backend/nodes/equalfuncs.c

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* Portions Copyright (c) 1994, Regents of the University of California
2121
*
2222
* IDENTIFICATION
23-
* $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.95 2001/07/12 18:02:59 tgl Exp $
23+
* $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.96 2001/07/16 19:07:38 momjian Exp $
2424
*
2525
*-------------------------------------------------------------------------
2626
*/
@@ -898,19 +898,6 @@ _equalCommentStmt(CommentStmt *a, CommentStmt *b)
898898
return true;
899899
}
900900

901-
static bool
902-
_equalExtendStmt(ExtendStmt *a, ExtendStmt *b)
903-
{
904-
if (!equalstr(a->idxname, b->idxname))
905-
return false;
906-
if (!equal(a->whereClause, b->whereClause))
907-
return false;
908-
if (!equal(a->rangetable, b->rangetable))
909-
return false;
910-
911-
return true;
912-
}
913-
914901
static bool
915902
_equalFetchStmt(FetchStmt *a, FetchStmt *b)
916903
{
@@ -1940,9 +1927,6 @@ equal(void *a, void *b)
19401927
case T_CommentStmt:
19411928
retval = _equalCommentStmt(a, b);
19421929
break;
1943-
case T_ExtendStmt:
1944-
retval = _equalExtendStmt(a, b);
1945-
break;
19461930
case T_FetchStmt:
19471931
retval = _equalFetchStmt(a, b);
19481932
break;

src/backend/parser/gram.y

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.237 2001/07/16 05:06:58 tgl Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.238 2001/07/16 19:07:40 momjian Exp $
1515
*
1616
* HISTORY
1717
* AUTHOR DATE MAJOR EVENT
@@ -2469,7 +2469,6 @@ opt_class: class
24692469
| /*EMPTY*/ { $$ = NULL; }
24702470
;
24712471

2472-
24732472
/*****************************************************************************
24742473
*
24752474
* QUERY:

src/include/nodes/nodes.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: nodes.h,v 1.91 2001/06/19 22:39:12 tgl Exp $
10+
* $Id: nodes.h,v 1.92 2001/07/16 19:07:40 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -158,7 +158,6 @@ typedef enum NodeTag
158158
T_DropStmt,
159159
T_TruncateStmt,
160160
T_CommentStmt,
161-
T_ExtendStmt,
162161
T_FetchStmt,
163162
T_IndexStmt,
164163
T_ProcedureStmt,

src/include/nodes/parsenodes.h

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: parsenodes.h,v 1.135 2001/07/12 18:03:00 tgl Exp $
10+
* $Id: parsenodes.h,v 1.136 2001/07/16 19:07:40 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -465,19 +465,6 @@ typedef struct CommentStmt
465465
char *comment; /* The comment to insert */
466466
} CommentStmt;
467467

468-
/* ----------------------
469-
* Extend Index Statement
470-
* ----------------------
471-
*/
472-
typedef struct ExtendStmt
473-
{
474-
NodeTag type;
475-
char *idxname; /* name of the index */
476-
Node *whereClause; /* qualifications */
477-
List *rangetable; /* range table, filled in by
478-
* transformStmt() */
479-
} ExtendStmt;
480-
481468
/* ----------------------
482469
* Begin Recipe Statement
483470
* ----------------------

0 commit comments

Comments
 (0)