Jim Mercer <jim(at)pneumonoultramicroscopicsilicovolcanoconiosis(dot)ca> writes:
> 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.
This would be two separate functions in Postgres' view of the world.
Whether one calls the other internally is between you and your code...
regards, tom lane
PS: pneumonoultramicroscopicsilicovolcanoconiosis? Wazzat?