Skip to content

Commit e3cec20

Browse files
Jan WieckJan Wieck
authored andcommitted
Removed LZTEXT datatype as discussed.
Jan
1 parent e9bfedc commit e3cec20

File tree

12 files changed

+17
-96
lines changed

12 files changed

+17
-96
lines changed

src/backend/utils/adt/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Makefile for utils/adt
55
#
66
# IDENTIFICATION
7-
# $Header: /cvsroot/pgsql/src/backend/utils/adt/Makefile,v 1.29 1999/12/13 22:34:33 momjian Exp $
7+
# $Header: /cvsroot/pgsql/src/backend/utils/adt/Makefile,v 1.30 1999/12/28 13:40:48 wieck Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -35,7 +35,7 @@ OBJS = acl.o arrayfuncs.o arrayutils.o bool.o cash.o char.o chunk.o \
3535
regexp.o regproc.o ruleutils.o selfuncs.o sets.o \
3636
tid.o timestamp.o varchar.o varlena.o version.o \
3737
network.o mac.o inet_net_ntop.o inet_net_pton.o \
38-
ri_triggers.o pg_lzcompress.o lztext.o
38+
ri_triggers.o pg_lzcompress.o
3939

4040
all: SUBSYS.o
4141

src/backend/utils/adt/lztext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* ----------
22
* lztext.c -
33
*
4-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/lztext.c,v 1.4 1999/11/25 01:28:04 wieck Exp $
4+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/lztext.c,v 1.5 1999/12/28 13:40:48 wieck Exp $
55
*
66
* Text type with internal LZ compressed representation. Uses the
77
* standard PostgreSQL compression method.

src/backend/utils/cache/relcache.c

Lines changed: 3 additions & 3 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.82 1999/12/16 22:19:54 wieck Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.83 1999/12/28 13:40:49 wieck Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -674,8 +674,8 @@ RelationBuildRuleLock(Relation relation)
674674
Anum_pg_rewrite_ev_qual, pg_rewrite_tupdesc,
675675
&isnull);
676676

677-
ruleaction = PointerGetDatum(lztextout((lztext *) DatumGetPointer(ruleaction)));
678-
rule_evqual_string = PointerGetDatum(lztextout((lztext *) DatumGetPointer(rule_evqual_string)));
677+
ruleaction = PointerGetDatum(textout((text *) DatumGetPointer(ruleaction)));
678+
rule_evqual_string = PointerGetDatum(textout((text *) DatumGetPointer(rule_evqual_string)));
679679

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

src/include/catalog/pg_amop.h

Lines changed: 1 addition & 11 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_amop.h,v 1.25 1999/11/25 01:28:05 wieck Exp $
10+
* $Id: pg_amop.h,v 1.26 1999/12/28 13:40:50 wieck Exp $
1111
*
1212
* NOTES
1313
* the genbki.sh script reads this file and generates .bki
@@ -348,16 +348,6 @@ DATA(insert OID = 0 ( 403 1768 1752 3 btreesel btreenpage ));
348348
DATA(insert OID = 0 ( 403 1768 1757 4 btreesel btreenpage ));
349349
DATA(insert OID = 0 ( 403 1768 1756 5 btreesel btreenpage ));
350350

351-
/*
352-
* nbtree lztext
353-
*/
354-
355-
DATA(insert OID = 0 ( 403 1663 1659 1 btreesel btreenpage ));
356-
DATA(insert OID = 0 ( 403 1663 1660 2 btreesel btreenpage ));
357-
DATA(insert OID = 0 ( 403 1663 1657 3 btreesel btreenpage ));
358-
DATA(insert OID = 0 ( 403 1663 1662 4 btreesel btreenpage ));
359-
DATA(insert OID = 0 ( 403 1663 1661 5 btreesel btreenpage ));
360-
361351
/*
362352
* hash table _ops
363353
*/

src/include/catalog/pg_amproc.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* Copyright (c) 1994, Regents of the University of California
1111
*
12-
* $Id: pg_amproc.h,v 1.17 1999/12/08 11:37:38 momjian Exp $
12+
* $Id: pg_amproc.h,v 1.18 1999/12/28 13:40:50 wieck Exp $
1313
*
1414
* NOTES
1515
* the genbki.sh script reads this file and generates .bki
@@ -98,7 +98,6 @@ DATA(insert OID = 0 (403 810 836 1));
9898
DATA(insert OID = 0 (403 935 926 1));
9999
DATA(insert OID = 0 (403 652 926 1));
100100
DATA(insert OID = 0 (403 1768 1769 1));
101-
DATA(insert OID = 0 (403 1663 1636 1));
102101

103102

104103
/* hash */

src/include/catalog/pg_opclass.h

Lines changed: 1 addition & 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_opclass.h,v 1.24 1999/12/08 11:17:20 momjian Exp $
10+
* $Id: pg_opclass.h,v 1.25 1999/12/28 13:40:50 wieck Exp $
1111
*
1212
* NOTES
1313
* the genbki.sh script reads this file and generates .bki
@@ -117,7 +117,5 @@ DATA(insert OID = 652 ( cidr_ops 650 ));
117117
DESCR("");
118118
DATA(insert OID = 1768 ( numeric_ops 1700 ));
119119
DESCR("");
120-
DATA(insert OID = 1663 ( lztext_ops 1625 ));
121-
DESCR("");
122120

123121
#endif /* PG_OPCLASS_H */

src/include/catalog/pg_operator.h

Lines changed: 1 addition & 10 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_operator.h,v 1.62 1999/11/25 01:28:05 wieck Exp $
10+
* $Id: pg_operator.h,v 1.63 1999/12/28 13:40:50 wieck Exp $
1111
*
1212
* NOTES
1313
* the genbki.sh script reads this file and generates .bki
@@ -687,15 +687,6 @@ DATA(insert OID = 1761 ( "/" PGUID 0 b t f 1700 1700 1700 0 0 0 0 numeric
687687
DATA(insert OID = 1762 ( "%" PGUID 0 b t f 1700 1700 1700 0 0 0 0 numeric_mod - - ));
688688
DATA(insert OID = 1763 ( "@" PGUID 0 l t f 0 1700 1700 0 0 0 0 numeric_abs - - ));
689689

690-
/* LZTEXT type */
691-
DATA(insert OID = 1657 ( "=" PGUID 0 b t f 1625 1625 16 1657 1658 1659 1659 lztext_eq eqsel eqjoinsel ));
692-
DATA(insert OID = 1658 ( "<>" PGUID 0 b t f 1625 1625 16 1658 1657 0 0 lztext_ne neqsel neqjoinsel ));
693-
DATA(insert OID = 1659 ( "<" PGUID 0 b t f 1625 1625 16 1661 1662 0 0 lztext_lt intltsel intltjoinsel ));
694-
DATA(insert OID = 1660 ( "<=" PGUID 0 b t f 1625 1625 16 1662 1661 0 0 lztext_le intltsel intltjoinsel ));
695-
DATA(insert OID = 1661 ( ">" PGUID 0 b t f 1625 1625 16 1659 1660 0 0 lztext_gt intgtsel intgtjoinsel ));
696-
DATA(insert OID = 1662 ( ">=" PGUID 0 b t f 1625 1625 16 1660 1659 0 0 lztext_ge intgtsel intgtjoinsel ));
697-
698-
699690

700691
/*
701692
* function prototypes

src/include/catalog/pg_proc.h

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: pg_proc.h,v 1.109 1999/12/12 05:57:36 momjian Exp $
9+
* $Id: pg_proc.h,v 1.110 1999/12/28 13:40:50 wieck Exp $
1010
*
1111
* NOTES
1212
* The script catalog/genbki.sh reads this file and generates .bki
@@ -2340,42 +2340,6 @@ DESCR("larger of two numbers");
23402340
DATA(insert OID = 1769 ( numeric_cmp PGUID 11 f t t 2 f 23 "1700 1700" 100 0 0 100 numeric_cmp - ));
23412341
DESCR("compare two numbers");
23422342

2343-
/* OID's 1625 - 1639 LZTEXT data type */
2344-
DATA(insert OID = 1626 ( lztextin PGUID 11 f t t 1 f 1625 "0" 100 0 0 100 lztextin - ));
2345-
DESCR("(internal)");
2346-
DATA(insert OID = 1627 ( lztextout PGUID 11 f t t 1 f 23 "0" 100 0 0 100 lztextout - ));
2347-
DESCR("(internal)");
2348-
DATA(insert OID = 1628 ( lztext_text PGUID 11 f t t 1 f 25 "1625" 100 0 0 100 lztext_text -));
2349-
DESCR("convert lztext to text");
2350-
DATA(insert OID = 1629 ( text PGUID 11 f t t 1 f 25 "1625" 100 0 0 100 lztext_text -));
2351-
DESCR("convert lztext to text");
2352-
DATA(insert OID = 1630 ( text_lztext PGUID 11 f t t 1 f 1625 "25" 100 0 0 100 text_lztext -));
2353-
DESCR("convert text to lztext");
2354-
DATA(insert OID = 1631 ( lztext PGUID 11 f t t 1 f 1625 "25" 100 0 0 100 text_lztext -));
2355-
DESCR("convert text to lztext");
2356-
DATA(insert OID = 1632 ( lztextlen PGUID 11 f t t 1 f 23 "1625" 100 0 1 0 lztextlen - ));
2357-
DESCR("length");
2358-
DATA(insert OID = 1633 ( length PGUID 11 f t t 1 f 23 "1625" 100 0 1 0 lztextlen - ));
2359-
DESCR("length");
2360-
DATA(insert OID = 1634 ( lztextoctetlen PGUID 11 f t t 1 f 23 "1625" 100 0 1 0 lztextoctetlen - ));
2361-
DESCR("octet length");
2362-
DATA(insert OID = 1635 ( octet_length PGUID 11 f t t 1 f 23 "1625" 100 0 1 0 lztextoctetlen - ));
2363-
DESCR("octet length");
2364-
DATA(insert OID = 1636 ( lztext_cmp PGUID 11 f t t 2 f 23 "1625 1625" 100 0 1 0 lztext_cmp - ));
2365-
DESCR("compare lztext vs. lztext");
2366-
DATA(insert OID = 1637 ( lztext_eq PGUID 11 f t t 2 f 16 "1625 1625" 100 0 1 0 lztext_eq - ));
2367-
DESCR("equal");
2368-
DATA(insert OID = 1638 ( lztext_ne PGUID 11 f t t 2 f 16 "1625 1625" 100 0 1 0 lztext_ne - ));
2369-
DESCR("not equal");
2370-
DATA(insert OID = 1639 ( lztext_gt PGUID 11 f t t 2 f 16 "1625 1625" 100 0 1 0 lztext_gt - ));
2371-
DESCR("greater-than");
2372-
DATA(insert OID = 1654 ( lztext_ge PGUID 11 f t t 2 f 16 "1625 1625" 100 0 1 0 lztext_ge - ));
2373-
DESCR("greater-than-or-equal");
2374-
DATA(insert OID = 1655 ( lztext_lt PGUID 11 f t t 2 f 16 "1625 1625" 100 0 1 0 lztext_lt - ));
2375-
DESCR("lower-than");
2376-
DATA(insert OID = 1656 ( lztext_le PGUID 11 f t t 2 f 16 "1625 1625" 100 0 1 0 lztext_le - ));
2377-
DESCR("lower-than-or-equal");
2378-
23792343

23802344
/*
23812345
* prototypes for functions pg_proc.c

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.8 1999/11/18 13:56:30 wieck Exp $
10+
* $Id: pg_rewrite.h,v 1.9 1999/12/28 13:40:50 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-
lztext ev_qual; /* Compressed text */
41-
lztext ev_action; /* Compressed text */
40+
text ev_qual;
41+
text ev_action;
4242
} FormData_pg_rewrite;
4343

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

src/include/catalog/pg_type.h

Lines changed: 1 addition & 6 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_type.h,v 1.71 1999/11/17 21:21:51 wieck Exp $
10+
* $Id: pg_type.h,v 1.72 1999/12/28 13:40:50 wieck Exp $
1111
*
1212
* NOTES
1313
* the genbki.sh script reads this file and generates .bki
@@ -382,11 +382,6 @@ DATA(insert OID = 1296 ( timestamp PGUID 4 19 t b t \054 0 0 timestamp_in time
382382
DESCR("date time timezone, limited-range ISO-formated date and time");
383383
#define TIMESTAMPOID 1296
384384

385-
/* OIDS 1625 - 1639 */
386-
DATA(insert OID = 1625 ( lztext PGUID -1 -1 f b t \054 0 0 lztextin lztextout lztextin lztextout i _null_ ));
387-
DESCR("variable-length string, stored compressed");
388-
#define LZTEXTOID 1625
389-
390385
/* OIDS 1700 - 1799 */
391386
DATA(insert OID = 1700 ( numeric PGUID -1 -1 f b t \054 0 0 numeric_in numeric_out numeric_in numeric_out i _null_ ));
392387
DESCR("numeric(precision, decimal), arbitrary precision number");

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