Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite3cec20

Browse files
Jan WieckJan Wieck
Jan Wieck
authored and
Jan Wieck
committed
Removed LZTEXT datatype as discussed.
Jan
1 parente9bfedc commite3cec20

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(insertOID=0 (403176817574btreeselbtreenpage ));
349349
DATA(insertOID=0 (403176817565btreeselbtreenpage ));
350350

351-
/*
352-
*nbtree lztext
353-
*/
354-
355-
DATA(insertOID=0 (403166316591btreeselbtreenpage ));
356-
DATA(insertOID=0 (403166316602btreeselbtreenpage ));
357-
DATA(insertOID=0 (403166316573btreeselbtreenpage ));
358-
DATA(insertOID=0 (403166316624btreeselbtreenpage ));
359-
DATA(insertOID=0 (403166316615btreeselbtreenpage ));
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(insertOID=0 (4039359261));
9999
DATA(insertOID=0 (4036529261));
100100
DATA(insertOID=0 (403176817691));
101-
DATA(insertOID=0 (403166316361));
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(insertOID=1768 (numeric_ops1700 ));
119119
DESCR("");
120-
DATA(insertOID=1663 (lztext_ops1625 ));
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 00 0 0 numeric
687687
DATA(insertOID=1762 ("%"PGUID0btf1700170017000000numeric_mod-- ));
688688
DATA(insertOID=1763 ("@"PGUID0ltf0170017000000numeric_abs-- ));
689689

690-
/* LZTEXT type */
691-
DATA(insertOID=1657 ("="PGUID0btf16251625161657165816591659lztext_eqeqseleqjoinsel ));
692-
DATA(insertOID=1658 ("<>"PGUID0btf16251625161658165700lztext_neneqselneqjoinsel ));
693-
DATA(insertOID=1659 ("<"PGUID0btf16251625161661166200lztext_ltintltselintltjoinsel ));
694-
DATA(insertOID=1660 ("<="PGUID0btf16251625161662166100lztext_leintltselintltjoinsel ));
695-
DATA(insertOID=1661 (">"PGUID0btf16251625161659166000lztext_gtintgtselintgtjoinsel ));
696-
DATA(insertOID=1662 (">="PGUID0btf16251625161660165900lztext_geintgtselintgtjoinsel ));
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(insertOID=1769 (numeric_cmpPGUID11ftt2f23"1700 1700"10000100numeric_cmp- ));
23412341
DESCR("compare two numbers");
23422342

2343-
/* OID's 1625 - 1639 LZTEXT data type */
2344-
DATA(insertOID=1626 (lztextinPGUID11ftt1f1625"0"10000100lztextin- ));
2345-
DESCR("(internal)");
2346-
DATA(insertOID=1627 (lztextoutPGUID11ftt1f23"0"10000100lztextout- ));
2347-
DESCR("(internal)");
2348-
DATA(insertOID=1628 (lztext_textPGUID11ftt1f25"1625"10000100lztext_text-));
2349-
DESCR("convert lztext to text");
2350-
DATA(insertOID=1629 (textPGUID11ftt1f25"1625"10000100lztext_text-));
2351-
DESCR("convert lztext to text");
2352-
DATA(insertOID=1630 (text_lztextPGUID11ftt1f1625"25"10000100text_lztext-));
2353-
DESCR("convert text to lztext");
2354-
DATA(insertOID=1631 (lztextPGUID11ftt1f1625"25"10000100text_lztext-));
2355-
DESCR("convert text to lztext");
2356-
DATA(insertOID=1632 (lztextlenPGUID11ftt1f23"1625"100010lztextlen- ));
2357-
DESCR("length");
2358-
DATA(insertOID=1633 (lengthPGUID11ftt1f23"1625"100010lztextlen- ));
2359-
DESCR("length");
2360-
DATA(insertOID=1634 (lztextoctetlenPGUID11ftt1f23"1625"100010lztextoctetlen- ));
2361-
DESCR("octet length");
2362-
DATA(insertOID=1635 (octet_lengthPGUID11ftt1f23"1625"100010lztextoctetlen- ));
2363-
DESCR("octet length");
2364-
DATA(insertOID=1636 (lztext_cmpPGUID11ftt2f23"1625 1625"100010lztext_cmp- ));
2365-
DESCR("compare lztext vs. lztext");
2366-
DATA(insertOID=1637 (lztext_eqPGUID11ftt2f16"1625 1625"100010lztext_eq- ));
2367-
DESCR("equal");
2368-
DATA(insertOID=1638 (lztext_nePGUID11ftt2f16"1625 1625"100010lztext_ne- ));
2369-
DESCR("not equal");
2370-
DATA(insertOID=1639 (lztext_gtPGUID11ftt2f16"1625 1625"100010lztext_gt- ));
2371-
DESCR("greater-than");
2372-
DATA(insertOID=1654 (lztext_gePGUID11ftt2f16"1625 1625"100010lztext_ge- ));
2373-
DESCR("greater-than-or-equal");
2374-
DATA(insertOID=1655 (lztext_ltPGUID11ftt2f16"1625 1625"100010lztext_lt- ));
2375-
DESCR("lower-than");
2376-
DATA(insertOID=1656 (lztext_lePGUID11ftt2f16"1625 1625"100010lztext_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
Oidev_class;
3838
int2ev_attr;
3939
boolis_instead;
40-
lztextev_qual;/* Compressed text */
41-
lztextev_action;/* Compressed text */
40+
textev_qual;
41+
textev_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 PGUID4 19 t b t \054 00 timestamp_in time
382382
DESCR("date time timezone, limited-range ISO-formated date and time");
383383
#defineTIMESTAMPOID1296
384384

385-
/* OIDS 1625 - 1639 */
386-
DATA(insertOID=1625 (lztextPGUID-1-1fbt \05400lztextinlztextoutlztextinlztextouti_null_ ));
387-
DESCR("variable-length string, stored compressed");
388-
#defineLZTEXTOID1625
389-
390385
/* OIDS 1700 - 1799 */
391386
DATA(insertOID=1700 (numericPGUID-1-1fbt \05400numeric_innumeric_outnumeric_innumeric_outi_null_ ));
392387
DESCR("numeric(precision, decimal), arbitrary precision number");

‎src/include/utils/builtins.h

Lines changed: 1 addition & 17 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: builtins.h,v 1.92 1999/12/16 01:25:14 momjian Exp $
9+
* $Id: builtins.h,v 1.93 1999/12/28 13:40:52 wieck Exp $
1010
*
1111
* NOTES
1212
* This should normally only be included by fmgr.h.
@@ -30,7 +30,6 @@
3030
#include"utils/int8.h"
3131
#include"utils/nabstime.h"
3232
#include"utils/numeric.h"
33-
#include"utils/lztext.h"
3433
#include"access/heapam.h"/* for HeapTuple */
3534

3635
/*
@@ -633,19 +632,4 @@ HeapTupleRI_FKey_setnull_upd(FmgrInfo *proinfo);
633632
HeapTupleRI_FKey_setdefault_del(FmgrInfo*proinfo);
634633
HeapTupleRI_FKey_setdefault_upd(FmgrInfo*proinfo);
635634

636-
/* lztext.c */
637-
lztext*lztextin(char*str);
638-
char*lztextout(lztext*lz);
639-
text*lztext_text(lztext*lz);
640-
lztext*text_lztext(text*txt);
641-
int32lztextlen(lztext*lz);
642-
int32lztextoctetlen(lztext*lz);
643-
int32lztext_cmp(lztext*lz1,lztext*lz2);
644-
boollztext_eq(lztext*lz1,lztext*lz2);
645-
boollztext_ne(lztext*lz1,lztext*lz2);
646-
boollztext_gt(lztext*lz1,lztext*lz2);
647-
boollztext_ge(lztext*lz1,lztext*lz2);
648-
boollztext_lt(lztext*lz1,lztext*lz2);
649-
boollztext_le(lztext*lz1,lztext*lz2);
650-
651635
#endif/* BUILTINS_H */

‎src/include/utils/lztext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* ----------
22
* lztext.h
33
*
4-
* $Header: /cvsroot/pgsql/src/include/utils/Attic/lztext.h,v 1.1 1999/11/17 21:21:51 wieck Exp $
4+
* $Header: /cvsroot/pgsql/src/include/utils/Attic/lztext.h,v 1.2 1999/12/28 13:40:53 wieck Exp $
55
*
66
*Definitions for the lztext compressed data type
77
* ----------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp