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

Commit84ef6aa

Browse files
committed
Re-install working varchar() with compress size.
1 parent5fe090c commit84ef6aa

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

‎src/backend/utils/adt/varchar.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/varchar.c,v 1.21 1998/01/08 04:19:16 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/varchar.c,v 1.22 1998/01/08 04:58:19 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -132,11 +132,8 @@ varcharin(char *s, int dummy, int typlen)
132132
if (s==NULL)
133133
return ((char*)NULL);
134134

135-
if (typlen==-1)/* we will remove this soon to make compact storage */
136-
/* change varcharlen at the same time to use VARSIZE */
137-
len=strlen(s)+VARHDRSZ;
138-
/*if (typlen != -1 && len > typlen) */
139-
else
135+
len=strlen(s)+VARHDRSZ;
136+
if (typlen!=-1&&len>typlen)
140137
len=typlen;/* clip the string at max length */
141138

142139
if (len>4096)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp