adding a C function with optional arguments

Поиск
Список
Период
Сортировка
От Jim Mercer
Тема adding a C function with optional arguments
Дата
Msg-id 20001214153901.K11043@pneumonoultramicroscopicsilicovolcanoconiosis.ca
обсуждение исходный текст
Ответы Re: adding a C function with optional arguments  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
i've poked about and made a new function "makecrypt(plainpass, salt)", and
it works ok.

basically, it is just a hook to the unix crypt() function.

i was wondering if someone could tell me how, if possible, to implement
a c function such that i can do:

> SELECT makecrypt('secret', 'salt');
or
> SELECT makecrypt('secret');

such that if salt is not specified, the c function would make one up.

--
[ Jim Mercer          jim@pneumonoultramicroscopicsilicovolcanoconiosis.ca ]
[          Reptilian Research -- Longer Life through Colder Blood          ]
[ aka                        jim@reptiles.org              +1 416 410-5633 ]

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: create trigger (can't compile example, problem with include files)
Следующее
От: "Dan Wilson"
Дата:
Сообщение: Re: Trigger/Function problem