Removed LZTEXT datatype as discussed.
authorJan Wieck <JanWieck@Yahoo.com>
Tue, 28 Dec 1999 13:40:53 +0000 (13:40 +0000)
committerJan Wieck <JanWieck@Yahoo.com>
Tue, 28 Dec 1999 13:40:53 +0000 (13:40 +0000)
Jan

12 files changed:
src/backend/utils/adt/Makefile
src/backend/utils/adt/lztext.c
src/backend/utils/cache/relcache.c
src/include/catalog/pg_amop.h
src/include/catalog/pg_amproc.h
src/include/catalog/pg_opclass.h
src/include/catalog/pg_operator.h
src/include/catalog/pg_proc.h
src/include/catalog/pg_rewrite.h
src/include/catalog/pg_type.h
src/include/utils/builtins.h
src/include/utils/lztext.h

index 4c07c55a486bbf766edf2480d59312e4ca4833e9..9aba12726481b96aca163c9cbfb0116547de9df7 100644 (file)
@@ -4,7 +4,7 @@
 #    Makefile for utils/adt
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/backend/utils/adt/Makefile,v 1.29 1999/12/13 22:34:33 momjian Exp $
+#    $Header: /cvsroot/pgsql/src/backend/utils/adt/Makefile,v 1.30 1999/12/28 13:40:48 wieck Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -35,7 +35,7 @@ OBJS = acl.o arrayfuncs.o arrayutils.o bool.o cash.o char.o chunk.o \
    regexp.o regproc.o ruleutils.o selfuncs.o sets.o \
    tid.o timestamp.o varchar.o varlena.o version.o \
    network.o mac.o inet_net_ntop.o inet_net_pton.o \
-   ri_triggers.o pg_lzcompress.o lztext.o
+   ri_triggers.o pg_lzcompress.o
 
 all: SUBSYS.o
 
index ef31094fb51323152233fd704e0877e4b4c3e055..4cc6667e30558967210f439c0ee85749ad99d227 100644 (file)
@@ -1,7 +1,7 @@
 /* ----------
  * lztext.c -
  *
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/lztext.c,v 1.4 1999/11/25 01:28:04 wieck Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/lztext.c,v 1.5 1999/12/28 13:40:48 wieck Exp $
  *
  * Text type with internal LZ compressed representation. Uses the
  * standard PostgreSQL compression method.
index 007adfb01f0c76e66b4350d462e62ba3b4fa3c16..ffdc3cfa9dc0895d458c2353389292ec20b763ce 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.82 1999/12/16 22:19:54 wieck Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.83 1999/12/28 13:40:49 wieck Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -674,8 +674,8 @@ RelationBuildRuleLock(Relation relation)
                             Anum_pg_rewrite_ev_qual, pg_rewrite_tupdesc,
                                          &isnull);
 
-       ruleaction = PointerGetDatum(lztextout((lztext *) DatumGetPointer(ruleaction)));
-       rule_evqual_string = PointerGetDatum(lztextout((lztext *) DatumGetPointer(rule_evqual_string)));
+       ruleaction = PointerGetDatum(textout((text *) DatumGetPointer(ruleaction)));
+       rule_evqual_string = PointerGetDatum(textout((text *) DatumGetPointer(rule_evqual_string)));
 
        rule->actions = (List *) stringToNode(DatumGetPointer(ruleaction));
        rule->qual = (Node *) stringToNode(DatumGetPointer(rule_evqual_string));
index ef499d7afdc214fe4fcc7b3e7165a1b5a7b7f1d4..e2ee4b30cfc7683674751f4cabde4d78fb9c1b45 100644 (file)
@@ -7,7 +7,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: pg_amop.h,v 1.25 1999/11/25 01:28:05 wieck Exp $
+ * $Id: pg_amop.h,v 1.26 1999/12/28 13:40:50 wieck Exp $
  *
  * NOTES
  *  the genbki.sh script reads this file and generates .bki
@@ -348,16 +348,6 @@ DATA(insert OID = 0 (  403 1768 1752 3 btreesel btreenpage ));
 DATA(insert OID = 0 (  403 1768 1757 4 btreesel btreenpage ));
 DATA(insert OID = 0 (  403 1768 1756 5 btreesel btreenpage ));
 
-/*
- * nbtree lztext
- */
-
-DATA(insert OID = 0 (  403 1663 1659 1 btreesel btreenpage ));
-DATA(insert OID = 0 (  403 1663 1660 2 btreesel btreenpage ));
-DATA(insert OID = 0 (  403 1663 1657 3 btreesel btreenpage ));
-DATA(insert OID = 0 (  403 1663 1662 4 btreesel btreenpage ));
-DATA(insert OID = 0 (  403 1663 1661 5 btreesel btreenpage ));
-
 /*
  * hash table _ops
  */
index ebc52c502b6ee8548803d7f25078ecaff5471a81..e37f434a9e86a718e4373c19a9e6b619cf1ca9ab 100644 (file)
@@ -9,7 +9,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: pg_amproc.h,v 1.17 1999/12/08 11:37:38 momjian Exp $
+ * $Id: pg_amproc.h,v 1.18 1999/12/28 13:40:50 wieck Exp $
  *
  * NOTES
  *   the genbki.sh script reads this file and generates .bki
@@ -98,7 +98,6 @@ DATA(insert OID = 0 (403 810 836 1));
 DATA(insert OID = 0 (403 935 926 1));
 DATA(insert OID = 0 (403 652 926 1));
 DATA(insert OID = 0 (403 1768 1769 1));
-DATA(insert OID = 0 (403 1663 1636 1));
 
 
 /* hash */
index d43ed0991cc63ed044b1121030940104c7d08587..deb13cc4407cedbfbfa92b957f5c62f558bf6ba0 100644 (file)
@@ -7,7 +7,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: pg_opclass.h,v 1.24 1999/12/08 11:17:20 momjian Exp $
+ * $Id: pg_opclass.h,v 1.25 1999/12/28 13:40:50 wieck Exp $
  *
  * NOTES
  *   the genbki.sh script reads this file and generates .bki
@@ -117,7 +117,5 @@ DATA(insert OID = 652  (    cidr_ops        650   ));
 DESCR("");
 DATA(insert OID = 1768 (   numeric_ops    1700   ));
 DESCR("");
-DATA(insert OID = 1663 (   lztext_ops     1625   ));
-DESCR("");
 
 #endif  /* PG_OPCLASS_H */
index b572b0b01a39249a8522e93762f4293fd3a45e44..c161bce8c169db249d13ee3ff4e451b1dc399d9c 100644 (file)
@@ -7,7 +7,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: pg_operator.h,v 1.62 1999/11/25 01:28:05 wieck Exp $
+ * $Id: pg_operator.h,v 1.63 1999/12/28 13:40:50 wieck Exp $
  *
  * NOTES
  *   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
 DATA(insert OID = 1762 (  "%"     PGUID 0 b t f 1700 1700 1700    0    0 0 0 numeric_mod - - ));
 DATA(insert OID = 1763 (  "@"     PGUID 0 l t f    0 1700 1700    0    0 0 0 numeric_abs - - ));
 
-/* LZTEXT type */
-DATA(insert OID = 1657 (  "="     PGUID 0 b t f 1625 1625   16 1657 1658 1659 1659 lztext_eq eqsel eqjoinsel ));
-DATA(insert OID = 1658 (  "<>"    PGUID 0 b t f 1625 1625   16 1658 1657 0 0 lztext_ne neqsel neqjoinsel ));
-DATA(insert OID = 1659 (  "<"     PGUID 0 b t f 1625 1625   16 1661 1662 0 0 lztext_lt intltsel intltjoinsel ));
-DATA(insert OID = 1660 (  "<="    PGUID 0 b t f 1625 1625   16 1662 1661 0 0 lztext_le intltsel intltjoinsel ));
-DATA(insert OID = 1661 (  ">"     PGUID 0 b t f 1625 1625   16 1659 1660 0 0 lztext_gt intgtsel intgtjoinsel ));
-DATA(insert OID = 1662 (  ">="    PGUID 0 b t f 1625 1625   16 1660 1659 0 0 lztext_ge intgtsel intgtjoinsel ));
-
-
 
 /*
  * function prototypes
index 05cdd7f6b3e65cc0a46130dda39365f52fabb693..be62e108d4a545f1b164acb7940cd1b8afe7ac5c 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: pg_proc.h,v 1.109 1999/12/12 05:57:36 momjian Exp $
+ * $Id: pg_proc.h,v 1.110 1999/12/28 13:40:50 wieck Exp $
  *
  * NOTES
  *   The script catalog/genbki.sh reads this file and generates .bki
@@ -2340,42 +2340,6 @@ DESCR("larger of two numbers");
 DATA(insert OID = 1769 ( numeric_cmp           PGUID 11 f t t 2 f 23 "1700 1700" 100 0 0 100  numeric_cmp - ));
 DESCR("compare two numbers");
 
-/* OID's 1625 - 1639 LZTEXT data type */
-DATA(insert OID = 1626 ( lztextin              PGUID 11 f t t 1 f 1625 "0" 100 0 0 100  lztextin - ));
-DESCR("(internal)");
-DATA(insert OID = 1627 ( lztextout             PGUID 11 f t t 1 f 23 "0" 100 0 0 100  lztextout - ));
-DESCR("(internal)");
-DATA(insert OID = 1628 ( lztext_text           PGUID 11 f t t 1 f 25 "1625" 100 0 0 100  lztext_text -));
-DESCR("convert lztext to text");
-DATA(insert OID = 1629 ( text                  PGUID 11 f t t 1 f 25 "1625" 100 0 0 100  lztext_text -));
-DESCR("convert lztext to text");
-DATA(insert OID = 1630 ( text_lztext           PGUID 11 f t t 1 f 1625 "25" 100 0 0 100  text_lztext -));
-DESCR("convert text to lztext");
-DATA(insert OID = 1631 ( lztext                    PGUID 11 f t t 1 f 1625 "25" 100 0 0 100  text_lztext -));
-DESCR("convert text to lztext");
-DATA(insert OID = 1632 ( lztextlen             PGUID 11 f t t 1 f 23 "1625" 100 0 1 0  lztextlen - ));
-DESCR("length");
-DATA(insert OID = 1633 ( length                    PGUID 11 f t t 1 f 23 "1625" 100 0 1 0  lztextlen - ));
-DESCR("length");
-DATA(insert OID = 1634 ( lztextoctetlen            PGUID 11 f t t 1 f 23 "1625" 100 0 1 0  lztextoctetlen - ));
-DESCR("octet length");
-DATA(insert OID = 1635 ( octet_length          PGUID 11 f t t 1 f 23 "1625" 100 0 1 0  lztextoctetlen - ));
-DESCR("octet length");
-DATA(insert OID = 1636 ( lztext_cmp                PGUID 11 f t t 2 f 23 "1625 1625" 100 0 1 0  lztext_cmp - ));
-DESCR("compare lztext vs. lztext");
-DATA(insert OID = 1637 ( lztext_eq             PGUID 11 f t t 2 f 16 "1625 1625" 100 0 1 0  lztext_eq - ));
-DESCR("equal");
-DATA(insert OID = 1638 ( lztext_ne             PGUID 11 f t t 2 f 16 "1625 1625" 100 0 1 0  lztext_ne - ));
-DESCR("not equal");
-DATA(insert OID = 1639 ( lztext_gt             PGUID 11 f t t 2 f 16 "1625 1625" 100 0 1 0  lztext_gt - ));
-DESCR("greater-than");
-DATA(insert OID = 1654 ( lztext_ge             PGUID 11 f t t 2 f 16 "1625 1625" 100 0 1 0  lztext_ge - ));
-DESCR("greater-than-or-equal");
-DATA(insert OID = 1655 ( lztext_lt             PGUID 11 f t t 2 f 16 "1625 1625" 100 0 1 0  lztext_lt - ));
-DESCR("lower-than");
-DATA(insert OID = 1656 ( lztext_le             PGUID 11 f t t 2 f 16 "1625 1625" 100 0 1 0  lztext_le - ));
-DESCR("lower-than-or-equal");
-
 
 /*
  * prototypes for functions pg_proc.c
index e9a4d4ecd2b9c530329c9dd30fe3dbbdd867bb0b..76fa8c076d25cb563d8d3581650d834428048f9c 100644 (file)
@@ -7,7 +7,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: pg_rewrite.h,v 1.8 1999/11/18 13:56:30 wieck Exp $
+ * $Id: pg_rewrite.h,v 1.9 1999/12/28 13:40:50 wieck Exp $
  *
  * NOTES
  *   the genbki.sh script reads this file and generates .bki
@@ -37,8 +37,8 @@ CATALOG(pg_rewrite)
    Oid         ev_class;
    int2        ev_attr;
    bool        is_instead;
-   lztext      ev_qual;        /* Compressed text */
-   lztext      ev_action;      /* Compressed text */
+   text        ev_qual;
+   text        ev_action;
 } FormData_pg_rewrite;
 
 /* ----------------
index f154d016cef9113201f4d9a5642dab1211c29662..1db7273c61cc91794d5f23f830177c2866561ed7 100644 (file)
@@ -7,7 +7,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: pg_type.h,v 1.71 1999/11/17 21:21:51 wieck Exp $
+ * $Id: pg_type.h,v 1.72 1999/12/28 13:40:50 wieck Exp $
  *
  * NOTES
  *   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
 DESCR("date time timezone, limited-range ISO-formated date and time");
 #define TIMESTAMPOID   1296
 
-/* OIDS 1625 - 1639 */
-DATA(insert OID = 1625 ( lztext       PGUID -1  -1 f b t \054 0  0 lztextin lztextout lztextin lztextout i _null_ ));
-DESCR("variable-length string, stored compressed");
-#define LZTEXTOID      1625
-
 /* OIDS 1700 - 1799 */
 DATA(insert OID = 1700 ( numeric      PGUID -1  -1 f b t \054 0  0 numeric_in numeric_out numeric_in numeric_out i _null_ ));
 DESCR("numeric(precision, decimal), arbitrary precision number");
index 94a1b61ffc08295a2ceef67bdc8fa55a742441df..4486131d416abc7fa66ac628dafc6d1d3be035b6 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: builtins.h,v 1.92 1999/12/16 01:25:14 momjian Exp $
+ * $Id: builtins.h,v 1.93 1999/12/28 13:40:52 wieck Exp $
  *
  * NOTES
  *   This should normally only be included by fmgr.h.
@@ -30,7 +30,6 @@
 #include "utils/int8.h"
 #include "utils/nabstime.h"
 #include "utils/numeric.h"
-#include "utils/lztext.h"
 #include "access/heapam.h"     /* for HeapTuple */
 
 /*
@@ -633,19 +632,4 @@ HeapTuple  RI_FKey_setnull_upd(FmgrInfo *proinfo);
 HeapTuple  RI_FKey_setdefault_del(FmgrInfo *proinfo);
 HeapTuple  RI_FKey_setdefault_upd(FmgrInfo *proinfo);
 
-/* lztext.c */
-lztext    *lztextin(char *str);
-char      *lztextout(lztext *lz);
-text      *lztext_text(lztext *lz);
-lztext    *text_lztext(text *txt);
-int32      lztextlen(lztext *lz);
-int32      lztextoctetlen(lztext *lz);
-int32      lztext_cmp(lztext *lz1, lztext *lz2);
-bool       lztext_eq(lztext *lz1, lztext *lz2);
-bool       lztext_ne(lztext *lz1, lztext *lz2);
-bool       lztext_gt(lztext *lz1, lztext *lz2);
-bool       lztext_ge(lztext *lz1, lztext *lz2);
-bool       lztext_lt(lztext *lz1, lztext *lz2);
-bool       lztext_le(lztext *lz1, lztext *lz2);
-
 #endif  /* BUILTINS_H */
index c83280661c7b2e43cab24e47f5c10bc554e7ae20..a10ab34cd1e14f6087bc1f48d30e212009daffeb 100644 (file)
@@ -1,7 +1,7 @@
 /* ----------
  * lztext.h
  *
- * $Header: /cvsroot/pgsql/src/include/utils/Attic/lztext.h,v 1.1 1999/11/17 21:21:51 wieck Exp $
+ * $Header: /cvsroot/pgsql/src/include/utils/Attic/lztext.h,v 1.2 1999/12/28 13:40:53 wieck Exp $
  *
  * Definitions for the lztext compressed data type
  * ----------