Re: statement stuck when the connection grew up to 45 or more

Поиск
Список
Период
Сортировка
От Jan Cruz
Тема Re: statement stuck when the connection grew up to 45 or more
Дата
Msg-id 493da2780606020008w541f6676n69818d826cf30dc5@mail.gmail.com
обсуждение исходный текст
Ответ на Re: statement stuck when the connection grew up to 45 or more  ("Qingqing Zhou" <zhouqq@cs.toronto.edu>)
Список pgsql-bugs
This is the statement which having problem:
     select count(distinct empno) as counter1 from pay_master_history
           where empno in (select empno from pay_batch_basic_history where
organizationid like '015003%')
     and processyear = '2006'
     and processmonth = '05'
     and processbatch = '1'

SELECT COUNT (*) FROM (
SELECT empno as counter1 from pay_master_history as a
INNER JOIN (select empno from pay_batch_basic_history where organizationid
like '015003%'      and processyear = '2006'
     and processmonth = '05'
     and processbatch = '1') as b
ON b.empno = a.empno ) as count_result
-----------------------------
or just create the view and use inner join then count :b

В списке pgsql-bugs по дате отправления:

Предыдущее
От: "Stefan van Aalst"
Дата:
Сообщение: Infinite increment of postgre.exe in taskmanager
Следующее
От: "Magnus Hagander"
Дата:
Сообщение: Re: Infinite increment of postgre.exe in taskmanager