Write to file from pgplsql function

From: "Sven Sporer" <s(dot)sporer(at)gmx(dot)net>
To: pgsql-novice(at)postgresql(dot)org
Subject: Write to file from pgplsql function
Date: 2007-01-02 09:09:06
Message-ID: 20070102090906.100290@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hello,

is there a way to write to a file in the filesystem from a pgplsql function?

The reason for this is the architecture of our user system: Each new database has a file in $PGDATA/users with a list of users who are allowed to connect to this database. In pg_hba.conf is a link to this file. As some users don't have filesystem privileges, but are allowed to add users, they have to be able to call a function in postgres which adds that user to the file.

I appreciate your help, or a tip to improve the user system.

Sven Sporer

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message A. Kretschmer 2007-01-02 09:13:07 Re: Write to file from pgplsql function
Previous Message Chad Wagner 2007-01-02 00:00:19 Re: 2007 DST change not working