Skip to content

Commit 73bfcf6

Browse files
Jan WieckJan Wieck
authored andcommitted
Changed pg_rewrite attributes ev_qual and ev_action to the new
compressed lztext data type. Jan
1 parent 1276aef commit 73bfcf6

File tree

6 files changed

+14
-12
lines changed

6 files changed

+14
-12
lines changed

src/backend/commands/comment.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
#include "postgres.h"
1313

14+
#include "utils/builtins.h"
1415
#include "access/heapam.h"
1516
#include "catalog/catname.h"
1617
#include "catalog/indexing.h"
@@ -27,7 +28,6 @@
2728
#include "miscadmin.h"
2829
#include "rewrite/rewriteRemove.h"
2930
#include "utils/acl.h"
30-
#include "utils/builtins.h"
3131
#include "utils/syscache.h"
3232

3333
#include "../backend/parser/parse.h"

src/backend/rewrite/rewriteDefine.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteDefine.c,v 1.39 1999/11/07 23:08:12 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteDefine.c,v 1.40 1999/11/18 13:56:27 wieck Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
1414

1515
#include "postgres.h"
1616

1717
#include "access/heapam.h"
18+
#include "utils/builtins.h"
1819
#include "catalog/pg_rewrite.h"
1920
#include "lib/stringinfo.h"
2021
#include "parser/parse_relation.h"
2122
#include "rewrite/rewriteDefine.h"
2223
#include "rewrite/rewriteSupport.h"
2324
#include "tcop/tcopprot.h"
24-
#include "utils/builtins.h"
2525

2626
Oid LastOidProcessed = InvalidOid;
2727

src/backend/rewrite/rewriteRemove.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteRemove.c,v 1.31 1999/11/07 23:08:13 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteRemove.c,v 1.32 1999/11/18 13:56:27 wieck Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
1414

1515

1616
#include "postgres.h"
1717

18+
#include "utils/builtins.h"
1819
#include "access/heapam.h"
1920
#include "catalog/catname.h"
2021
#include "catalog/pg_rewrite.h"

src/backend/utils/cache/relcache.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.78 1999/11/17 23:51:21 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.79 1999/11/18 13:56:28 wieck Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -36,6 +36,7 @@
3636

3737
#include "postgres.h"
3838

39+
#include "utils/builtins.h"
3940
#include "access/genam.h"
4041
#include "access/heapam.h"
4142
#include "access/istrat.h"
@@ -53,7 +54,6 @@
5354
#include "lib/hasht.h"
5455
#include "miscadmin.h"
5556
#include "storage/smgr.h"
56-
#include "utils/builtins.h"
5757
#include "utils/catcache.h"
5858
#include "utils/relcache.h"
5959
#include "utils/temprel.h"
@@ -679,8 +679,8 @@ RelationBuildRuleLock(Relation relation)
679679
Anum_pg_rewrite_ev_qual, pg_rewrite_tupdesc,
680680
&isnull);
681681

682-
ruleaction = PointerGetDatum(textout((struct varlena *) DatumGetPointer(ruleaction)));
683-
rule_evqual_string = PointerGetDatum(textout((struct varlena *) DatumGetPointer(rule_evqual_string)));
682+
ruleaction = PointerGetDatum(lztextout((lztext *) DatumGetPointer(ruleaction)));
683+
rule_evqual_string = PointerGetDatum(lztextout((lztext *) DatumGetPointer(rule_evqual_string)));
684684

685685
rule->actions = (List *) stringToNode(DatumGetPointer(ruleaction));
686686
rule->qual = (Node *) stringToNode(DatumGetPointer(rule_evqual_string));

src/backend/utils/cache/syscache.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/cache/syscache.c,v 1.39 1999/11/16 04:13:59 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/cache/syscache.c,v 1.40 1999/11/18 13:56:29 wieck Exp $
1111
*
1212
* NOTES
1313
* These routines allow the parser/planner/executor to perform
@@ -19,6 +19,7 @@
1919
*/
2020
#include "postgres.h"
2121

22+
#include "utils/builtins.h"
2223
#include "access/heapam.h"
2324
#include "catalog/catname.h"
2425
#include "catalog/pg_aggregate.h"

src/include/catalog/pg_rewrite.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: pg_rewrite.h,v 1.7 1999/02/13 23:21:14 momjian Exp $
10+
* $Id: pg_rewrite.h,v 1.8 1999/11/18 13:56:30 wieck Exp $
1111
*
1212
* NOTES
1313
* the genbki.sh script reads this file and generates .bki
@@ -37,8 +37,8 @@ CATALOG(pg_rewrite)
3737
Oid ev_class;
3838
int2 ev_attr;
3939
bool is_instead;
40-
text ev_qual; /* VARLENA */
41-
text ev_action; /* VARLENA */
40+
lztext ev_qual; /* Compressed text */
41+
lztext ev_action; /* Compressed text */
4242
} FormData_pg_rewrite;
4343

4444
/* ----------------

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy