Re: reg:lseek&read ..pls
От
Tom Lane
Тема
Re: reg:lseek&read ..pls
Дата
Msg-id
9691.1135611507@sss.pgh.pa.us
Ответ на
reg:lseek&read ..pls (sandhya)
Список
Дерево обсуждения
reg:lseek&read ..pls "sandhya" <sandhyar@amiindia.co.in>
Re: reg:lseek&read ..pls Tom Lane <tgl@sss.pgh.pa.us>
"sandhya" writes: > But before that i need to know the size of the object from which i am = > trying to get the contents. > How can i do this? Same way you'd do it for a Unix file: seek to the end, note the end offset, seek back to the start and read. ... lo_open ... lo_size = lo_lseek(conn, fd, 0, SEEK_END); // where's the end? lo_lseek(conn, fd, 0, SEEK_SET); // go back to start regards, tom lane
В списке pgsql-admin по дате отправления