Thread: writing to file

writing to file

From
Bartus Levente
Date:
Hi,

I would like to make a function that writes some log data into a text
file. Can anybody help me?

best regards,
Levi.

Re: writing to file

From
Jason Friedman
Date:
That might be possible using a trigger, but there might be a simpler
way.  What kinds of events/data are you trying to log?

On 2002.04.14 16:57 Bartus Levente wrote:
> Hi,
>
> I would like to make a function that writes some log data into a text
> file. Can anybody help me?
>
> best regards,
> Levi.
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html

Re: writing to file

From
"Joshua b. Jore"
Date:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

So I was thinking about this and you probably need to use an untrusted
language like PL/TclU, PL/PerlU, C or C++. The point is that in those
modes you are allowed to operate on things outside of the database itself.
Go be fluent in one of those and start there.

Joshua b. Jore
http://www.greentechnologist.org

On Thu, 18 Apr 2002, Jason Friedman wrote:

> That might be possible using a trigger, but there might be a simpler
> way.  What kinds of events/data are you trying to log?
>
> On 2002.04.14 16:57 Bartus Levente wrote:
> > Hi,
> >
> > I would like to make a function that writes some log data into a text
> > file. Can anybody help me?
> >
> > best regards,
> > Levi.
> >
> > ---------------------------(end of
> > broadcast)---------------------------
> > TIP 5: Have you checked our extensive FAQ?
> >
> > http://www.postgresql.org/users-lounge/docs/faq.html
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (OpenBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE8vj60fexLsowstzcRAiP/AKCEhY83DfbZys3LN7SKfbW7RyHOiwCfVru6
Fa/iNnVvA3Chx6cG77HT1aE=
=PFh/
-----END PGP SIGNATURE-----