From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: [HACKERS] pg_stat_file() and length/size |
Date: | 2005-08-15 23:04:35 |
Message-ID: | 200508152304.j7FN4Z121068@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Bruce Momjian wrote:
> I am thinking the proper term for the first column of pg_stat_file() is
> "size", not "length".
>
> test=> select * from pg_stat_file('.');
> length | atime | mtime | ctime | isdir
> --------+------------------------+------------------------+------------------------+-------
>
> 512 | 2005-08-13 23:06:38-04 | 2005-08-13 23:06:54-04 | 2005-08-13 23:06:54-04 | t
> (1 row)
I have renamed the column from length to size. I also renamed the
timestamp columns to be more meaningful:
test=> select (pg_stat_file('.')).*;
size | access | modification | change | creation | isdir
------+------------------------+------------------------+------------------------+----------+-------
512 | 2005-08-15 18:10:10-04 | 2005-08-15 17:30:28-04 | 2005-08-15 17:30:28-04 | | t
(1 row)
(Anyone have a better name for "change"?)
In doing this I also realized the ctime on Unix is change time (file
contents or inode), while on Win32 ctime is file creation time. I split
the ctime column into "change" and "creation", and one is null on each
platform. Above is the Unix output. I have also updated the catalog
version.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
Attachment | Content-Type | Size |
---|---|---|
unknown_filename | text/plain | 6.3 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2005-08-15 23:14:38 | Re: Changes improve the performance of INSERT and UPDATE |
Previous Message | Michael Fuhr | 2005-08-15 22:45:04 | Re: Testing of MVCC |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2005-08-16 01:55:15 | Re: [PATCHES] enable/disable trigger (Re: Fwd: Open items) |
Previous Message | Matt Miller | 2005-08-15 14:03:38 | Re: PL/pgSQL: SELECT INTO EXACT |