Re: [HACKERS] For review: Server instrumentation patch - Mailing list pgsql-patches

From Andreas Pflug
Subject Re: [HACKERS] For review: Server instrumentation patch
Date
Msg-id 42FE16C6.6040800@pse-consulting.de
Whole thread Raw
In response to Re: [HACKERS] For review: Server instrumentation patch  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: [HACKERS] For review: Server instrumentation patch
List pgsql-patches
Bruce Momjian wrote:
>
> Also, do we have a way to return columns from a system-installed
> function?  I really don't like that pg_stat_file() to returns a record
> rather than named columns.  How do I even access the individual record
> values?

As in pg_settings:

SELECT length, mtime FROM pg_file_stat('postgresql.conf') AS st(length
int4, ctime timestamp, atime timestamp, mtime timestamp, isdir bool)

Regards,
Andreas

pgsql-patches by date:

Previous
From: Andreas Pflug
Date:
Subject: Re: [HACKERS] For review: Server instrumentation patch
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] For review: Server instrumentation patch