Re: Add SPI results constants available for PL/*

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Add SPI results constants available for PL/*
Дата
Msg-id 20120106220718.GB31354@svana.org
обсуждение исходный текст
Ответ на Re: Add SPI results constants available for PL/*  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
On Tue, Jan 03, 2012 at 09:11:17PM -0500, Andrew Dunstan wrote:
> Yeah, I'm with you and Pavel. Here's my quick perl one-liner to
> produce a set of SPI_* constants for pl/perl. I'm looking at the
> best way to include this in the bootstrap code.
>
>    perl -ne 'BEGIN { print "use constant\n{\n"; } END { print "};\n"; }
>    print "\t$1 => $2,\n" if /#define (SPI_\S+)\s+\(?(-?\d+)\)?/;'
>    src/include/executor/spi.h

Well, there's also h2ph, but that may be overkill...

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> He who writes carelessly confesses thereby at the very outset that he does
> not attach much importance to his own thoughts.  -- Arthur Schopenhauer

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Progress on fast path sorting, btree index creation time
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: 16-bit page checksums for 9.2