Re: pgxs: build infrastructure for extensions v4

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: pgxs: build infrastructure for extensions v4
Дата
Msg-id 411124EC.4060604@joeconway.com
обсуждение исходный текст
Ответ на Re: pgxs: build infrastructure for extensions v4  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: pgxs: build infrastructure for extensions v4  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Andrew Dunstan wrote:
> Mark Cave-Ayland wrote:
>> This is because I only get the pgxs directory returned by "pgconfig
>> --pgxs" as opposed to the path to the pgxs.mk file itself - is that the
>> correct thing to do (i.e. the comment is wrong?) or is "pgconfig --pgxs"
>> returning the wrong thing?
>
> needs to be fixed in pg_config.c I think - should be a one-liner.

If the attached looks correct I'll apply it.

Joe
Index: src/bin/pg_config/pg_config.c
===================================================================
RCS file: /cvsroot/pgsql-server/src/bin/pg_config/pg_config.c,v
retrieving revision 1.3
diff -c -r1.3 pg_config.c
*** src/bin/pg_config/pg_config.c    2 Aug 2004 12:34:14 -0000    1.3
--- src/bin/pg_config/pg_config.c    4 Aug 2004 18:00:51 -0000
***************
*** 141,147 ****
          else if (strcmp(argv[i],"--pgxs") == 0)
          {
              get_pkglib_path(mypath,otherpath);
!             strncat(otherpath, "/pgxs", MAXPGPATH-1);
          }

          printf("%s\n",otherpath);
--- 141,147 ----
          else if (strcmp(argv[i],"--pgxs") == 0)
          {
              get_pkglib_path(mypath,otherpath);
!             strncat(otherpath, "/pgxs/src/makefiles/pgxs.mk", MAXPGPATH-1);
          }

          printf("%s\n",otherpath);

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

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Anybody have an Oracle PL/SQL reference at hand?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PITR - recovery to a particular transaction