Re: insert a text file into a variable in order to insert into a bytea column
В списке pgsql-sql по дате отправления:
| От | Adrian Klaver |
|---|---|
| Тема | Re: insert a text file into a variable in order to insert into a bytea column |
| Дата | |
| Msg-id | 56AA7523.4020806@aklaver.com обсуждение исходный текст |
| Ответ на | Re: insert a text file into a variable in order to insert into a bytea column (Arthur Lewis <arthur.lewis@hypermediasystems.com>) |
| Ответы |
Re: insert a text file into a variable in order to insert
into a bytea column
|
| Список | pgsql-sql |
On 01/28/2016 10:46 AM, Arthur Lewis wrote: > Hi, > In my shell I did the following > > $ cat file > file.temp > $ ls -l file file.temp > -rw-rw-r-- 1 alewis alewis 53604 Jan 27 08:30 file > -rw-rw-r-- 1 alewis alewis 53604 Jan 28 10:28 file.temp > $ diff file file.temp > $ > > So at least in the shell the cat command isn't losing a byte at the end of the file like in psql \set x `cat file`. Hmm, well there went that theory;) What happens if you do?: select octet_length(:'stext'); > > Arthur Lewis > -- Adrian Klaver adrian.klaver@aklaver.com
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера