Re: pgsql-server/src/backend catalog/pg_proc.c nod ...

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: pgsql-server/src/backend catalog/pg_proc.c nod ...
Дата
Msg-id 3D4DAFBD.4010400@joeconway.com
обсуждение исходный текст
Ответ на pgsql-server/src/backend catalog/pg_proc.c nod ...  (momjian@postgresql.org (Bruce Momjian - CVS))
Ответы Re: pgsql-server/src/backend catalog/pg_proc.c nod ...  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers
Joe Conway wrote:
> I'm still getting:
> utils/SUBSYS.o: In function `timestamptz_date':
> /opt/src/pgsql/src/backend/utils/adt/date.c:410: undefined reference to
> `backend_pid'
> collect2: ld returned 1 exit status
> make[2]: *** [postgres] Error 1
>
> which is odd because I can't find a reference to backend_pid at all in
> date.c. Any  pointers to work around this one?
>

OK - found the issue. pg_proc.h still had a reference to backend_pid
instead of pg_backend_pid. Here's the fix (attached).

Joe

Index: src/include/catalog/pg_proc.h
===================================================================
RCS file: /opt/src/cvs/pgsql-server/src/include/catalog/pg_proc.h,v
retrieving revision 1.250
diff -c -r1.250 pg_proc.h
*** src/include/catalog/pg_proc.h    4 Aug 2002 20:01:33 -0000    1.250
--- src/include/catalog/pg_proc.h    4 Aug 2002 22:22:57 -0000
***************
*** 2703,2709 ****
  DESCR("Statistics: Number of blocks found in cache");
  DATA(insert OID = 1936 (  pg_stat_get_backend_idset        PGNSP PGUID 12 f f t t s 0 23 ""
pg_stat_get_backend_idset- _null_ )); 
  DESCR("Statistics: Currently active backend IDs");
! DATA(insert OID = 2026 (  pg_backend_pid                PGNSP PGUID 12 f f t f s 0 23 ""    backend_pid - _null_ ));
  DESCR("Statistics: Current backend ID");
  DATA(insert OID = 1937 (  pg_stat_get_backend_pid        PGNSP PGUID 12 f f t f s 1 23 "23"  pg_stat_get_backend_pid
-_null_ )); 
  DESCR("Statistics: PID of backend");
--- 2703,2709 ----
  DESCR("Statistics: Number of blocks found in cache");
  DATA(insert OID = 1936 (  pg_stat_get_backend_idset        PGNSP PGUID 12 f f t t s 0 23 ""
pg_stat_get_backend_idset- _null_ )); 
  DESCR("Statistics: Currently active backend IDs");
! DATA(insert OID = 2026 (  pg_backend_pid                PGNSP PGUID 12 f f t f s 0 23 ""    pg_backend_pid - _null_
));
  DESCR("Statistics: Current backend ID");
  DATA(insert OID = 1937 (  pg_stat_get_backend_pid        PGNSP PGUID 12 f f t f s 1 23 "23"  pg_stat_get_backend_pid
-_null_ )); 
  DESCR("Statistics: PID of backend");

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

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: pgsql-server/src/backend catalog/pg_proc.c nod ...
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql-server/src/include/catalog pg_proc.h