| From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
|---|---|
| To: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | copydir prototype |
| Date: | 2010-11-12 21:05:51 |
| Message-ID: | AANLkTi=8U+RmhcWYH34rcevw-XTyqV6Ag5dAkUHV-Bw6@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
This patch:
...did not tidy up after itself as well as it might have. In
particular, it left the prototype for copydir() in src/include/port.h,
while moving the source file from src/port/copydir.c to
src/backend/storage/file/copydir.c. I think this should probably be
cleaned up, but I'm a little uncertain where the best place to put
that prototype is. I am tempted to just put this in a new header file
named according to our usual conventions, namely
src/include/storage/copydir.c, but since there's only one public
function at present perhaps someone would like to argue for including
it in some other, already-exstant header.
A patch I'm working on needs to expose the copy_file() function, which
is currently static to copydir.c, so maybe it would be preferable to
rename copydir.c to copy.c and add the header as
src/include/storage/copy.h.
Thoughts?
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2010-11-12 21:13:35 | Re: copydir prototype |
| Previous Message | Tom Lane | 2010-11-12 20:43:52 | Re: wCTE behaviour |