| От | Tom Lane |
|---|---|
| Тема | Re: SUBSTRING performance for large BYTEA |
| Дата | |
| Msg-id | 12895.1187454042@sss.pgh.pa.us обсуждение |
| Ответ на | SUBSTRING performance for large BYTEA ("Vance Maverick" <vmaverick@pgp.com>) |
| Ответы |
Re: SUBSTRING performance for large BYTEA
Re: SUBSTRING performance for large BYTEA |
| Список | pgsql-general |
"Vance Maverick" <vmaverick@pgp.com> writes:
> My question is about performance in the postgres server. When I execute
> "SELECT SUBSTRING (my_bytea FROM ? FOR ?) FROM my_table WHERE id =3D ?",
> does it fetch the whole BYTEA into memory? Or does it access only the
> pages that contain the requested substring?
Recent releases will do what you want if the column has been marked
SET STORAGE EXTERNAL (before storing anything in it...) See the
ALTER TABLE reference page.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера