Re: bug in PG_VERSION_NUM patch

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: bug in PG_VERSION_NUM patch
Дата
Msg-id 200602282158.k1SLwLS24250@candle.pha.pa.us
обсуждение исходный текст
Ответ на bug in PG_VERSION_NUM patch  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: bug in PG_VERSION_NUM patch  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> cvs tip configure is giving a warning:
> 
> checking for flags to link embedded Perl...
/usr/lib64/perl5/5.8.6/x86_64-linux-thread-multi/auto/DynaLoader/DynaLoader.a
-L/usr/lib64/perl5/5.8.6/x86_64-linux-thread-multi/CORE-lperl -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
 
> gawk: warning: escape sequence `\.' treated as plain `.'
> checking for library containing setproctitle... no
> 
> Evidently gawk is not happy about
> 
> $AWK -F'\.' '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"

OK, I reread the manual page:
      As  each input record is read, gawk splits the record into      fields, using the value of the FS variable  as
the field      separator.   If FS is a single character, fields are sepa-      rated by that character.  If FS is the
null string,  then      each  individual character becomes a separate field.  Oth-      erwise, FS is expected to be a
full regular  expression.
 

Turns out -F is a regex only if it is more than one character.  Fixed by
changing it to '.'.  Applied.

--  Bruce Momjian   http://candle.pha.pa.us SRA OSS, Inc.   http://www.sraoss.com
 + If your life is a hard drive, Christ can be your backup. +


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: bug in PG_VERSION_NUM patch
Следующее
От: Hannu Krosing
Дата:
Сообщение: Re: Automatic free space map filling