"David Rowley" <dgrowley@gmail.com> writes:Indeed, work_mem is probably the problem. The critical difference
> I assume workmem, effective_cache_size and random_page_cost are all the same
> in the 2 postgresql.conf?
between the two plans seems to be that the first one is using a
"hashed subplan" and the second one isn't. Assuming the same datatypes in both databases, the only reason not to use a hashed subplan is if the hashtable is estimated not to fit in work_mem.
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера