| От | lgcaracol |
|---|---|
| Тема | Escape char in pg_ls_dir |
| Дата | |
| Msg-id | 1514541656508-0.post@n3.nabble.com обсуждение |
| Ответы |
Re: Escape char in pg_ls_dir
|
| Список | pgsql-novice |
Hi,
I'm new to postgresql. I have a database running on a windows machine and I
need to use pg_ls_dir to list the contents of a folder, but I can't because
of the backslash (\), as it's not allowed.
If I run select pg_ls_dir('c:') I can see the listing of C:\, but I need to
check another folder.
If I run select pg_ls_dir(E'c:\inetpub'), I got an error "could not open
directory "c:inetpub": No such file or directory. So I now the \ is not
being used.
If I run select pg_ls_dir('c:\\inetpub'), it says "absolute path not
allowed".
Anyone can give me a hint of how can I do this?
Thanks
--
Sent from: http://www.postgresql-archive.org/PostgreSQL-novice-f2132464.html
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера