Skip site navigation (1) Skip section navigation (2)

Re: bug in PG_VERSION_NUM patch

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: bug in PG_VERSION_NUM patch
Date: 2006-02-28 21:58:21
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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
  SRA OSS, Inc.

  + If your life is a hard drive, Christ can be your backup. +

In response to


pgsql-hackers by date

Next:From: Hannu KrosingDate: 2006-02-28 22:10:52
Subject: Re: Automatic free space map filling
Previous:From: Tom LaneDate: 2006-02-28 21:36:44
Subject: bug in PG_VERSION_NUM patch

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group