ОШИБКА:  отношение "xcalls.opgx_dialer_cfg" не существует
LINE 1: SELECT * FROM xcalls.opgx_dialer_cfg WHERE call_list_id = 0
                      ^


ОШИБКА:  столбец "segment" не существует
LINE 1: SELECT user_id, segment, company FROM xcalls.opgx_user_statu...
                        ^

SELECT user_id, segment, company FROM xcalls.opgx_user_status WHERE call_id IS NULL AND status_key IN ('work','work_noauto') ORDER BY update_ts ASC;


SELECT user_id, segment, company FROM xcalls.opgx_user_status WHERE call_id IS NULL AND status_key IN ('work','work_noin') ORDER BY update_ts ASC;


SELECT user_id, segment, company FROM xcalls.opgx_user_status WHERE call_id IS NULL AND status_key IN ('work_aband');


ОШИБКА:  INSERT содержит больше целевых столбцов, чем выражений
LINE 1: INSERT INTO xcalls.opgx_notice (call_id, user_id, status) VA...
                                                          ^

INSERT INTO xcalls.opgx_notice (call_id, user_id, status) VALUES ($1, $2);


ОШИБКА:  в сообщении Bind передано неверное число параметров (2, а подготовленный оператор "" требует 3)

UPDATE xcalls.opgx_calls SET rdr_number = $1, user_id = $2 WHERE call_id = $3


ОШИБКА:  столбец "actual" не существует
LINE 1: SELECT * FROM xcalls.opgx_queue WHERE actual IS TRUE ORDER B...
                                              ^

SELECT * FROM xcalls.opgx_queue WHERE actual IS TRUE ORDER BY row_id DESC LIMIT 10


ОШИБКА:  столбец "АСВ_196_28411963" не существует
LINE 1: ...CT debtor_id FROM opg_cr_credit WHERE credit_id = АСВ_196_28...
                                                             ^

SELECT * FROM opg_dt_debtor WHERE debtor_id IN (SELECT debtor_id FROM opg_cr_credit WHERE credit_id = АСВ_196_28411963) ORDER BY debtor_id DESC LIMIT 30


SELECT COUNT(*) as _count FROM opg_dt_debtor WHERE debtor_id IN (SELECT debtor_id FROM opg_cr_credit WHERE credit_id = АСВ_196_28411963);


ОШИБКА:  выполнение оператора отменено из-за тайм-аута

SELECT COUNT(*) as _count FROM opg_dt_debtor WHERE address_reg ILIKE '%Москва%';


ОШИБКА:  нет доступа к таблице opg_payment_details

SELECT * FROM opg_payment_details WHERE owner_id = '682000003'


SELECT * FROM opg_payment_details WHERE owner_id = '990000421'


ОШИБКА:  ошибка синтаксиса (примерное положение: "ORDER")
LINE 1: ...3-46c5-941a-5c38db2114ea' AND target_object_id =  ORDER BY v...
                                                             ^

SELECT v_md_row_id FROM xcalls.opgx_str_ac_activity WHERE operator_id = '3d742090-7bf3-46c5-941a-5c38db2114ea' AND target_object_id =  ORDER BY v_md_row_id DESC LIMIT 1


SELECT * FROM opg_payment_details WHERE owner_id = '627000331'


SELECT * FROM opg_payment_details WHERE owner_id = '477096889'


ОШИБКА:  ошибка синтаксиса (примерное положение: "ORDER")
LINE 1: ...c-443d-b390-74bbfdd7e949' AND target_object_id =  ORDER BY v...
                                                             ^

SELECT v_md_row_id FROM xcalls.opgx_str_ac_activity WHERE operator_id = '157bebaf-285c-443d-b390-74bbfdd7e949' AND target_object_id =  ORDER BY v_md_row_id DESC LIMIT 1


ОШИБКА:  ошибка синтаксиса в конце
LINE 1: SELECT * FROM xcalls.opgx_calls  WHERE id =
                                                    ^


ОШИБКА:  ошибка синтаксиса в конце
LINE 1: UPDATE xcalls.opgx_calls SET activity_id = '666' WHERE id =
                                                                    ^


SELECT * FROM opg_payment_details WHERE owner_id = '33164180'


ОШИБКА:  ошибка синтаксиса (примерное положение: "ORDER")
LINE 1: ...d-42b2-a6d4-decb0a470845' AND target_object_id =  ORDER BY v...
                                                             ^

SELECT v_md_row_id FROM xcalls.opgx_str_ac_activity WHERE operator_id = '34436098-916d-42b2-a6d4-decb0a470845' AND target_object_id =  ORDER BY v_md_row_id DESC LIMIT 1


ОШИБКА:  ошибка синтаксиса (примерное положение: "831949")
LINE 1: ...d FROM opg_cr_credit WHERE credit_id = АСВ_209_ЭК 831949) OR...
                                                             ^

SELECT * FROM opg_dt_debtor WHERE debtor_id IN (SELECT debtor_id FROM opg_cr_credit WHERE credit_id = АСВ_209_ЭК 831949) ORDER BY debtor_id DESC LIMIT 30


ОШИБКА:  ошибка синтаксиса (примерное положение: "831949")
LINE 1: ..._id FROM opg_cr_credit WHERE credit_id = АСВ_209_ЭК 831949);
                                                               ^

SELECT COUNT(*) as _count FROM opg_dt_debtor WHERE debtor_id IN (SELECT debtor_id FROM opg_cr_credit WHERE credit_id = АСВ_209_ЭК 831949);


ОШИБКА:  ошибка синтаксиса в конце
LINE 1: UPDATE xcalls.opgx_calls SET activity_id = '674' WHERE id =
                                                                    ^


ОШИБКА:  ошибка синтаксиса (примерное положение: "ORDER")
LINE 1: ...6-47e4-b88a-625837104dcb' AND target_object_id =  ORDER BY v...
                                                             ^

SELECT v_md_row_id FROM xcalls.opgx_str_ac_activity WHERE operator_id = '44ad5f72-94a6-47e4-b88a-625837104dcb' AND target_object_id =  ORDER BY v_md_row_id DESC LIMIT 1


ОШИБКА:  ошибка синтаксиса (примерное положение: "ORDER")
LINE 1: ...6-488f-b87e-e8fada106ed1' AND target_object_id =  ORDER BY v...
                                                             ^

SELECT v_md_row_id FROM xcalls.opgx_str_ac_activity WHERE operator_id = '29694fed-2676-488f-b87e-e8fada106ed1' AND target_object_id =  ORDER BY v_md_row_id DESC LIMIT 1


ОШИБКА:  нет доступа к таблице opg_payment_details

SELECT * FROM opg_payment_details WHERE owner_id = '627000331'


ОШИБКА:  выполнение оператора отменено из-за тайм-аута

SELECT * FROM xcalls.opgx_dialer_cfg WHERE call_list_id = 0


ОШИБКА:  ошибка синтаксиса (примерное положение: "17265286")
LINE 1: ...d FROM opg_cr_credit WHERE credit_id = АСВ_204_АА 17265286) ...
                                                             ^

SELECT * FROM opg_dt_debtor WHERE debtor_id IN (SELECT debtor_id FROM opg_cr_credit WHERE credit_number LIKE '%АСВ_204_АА 17265286%') AND debtor_id IN (SELECT debtor_id FROM opg_cr_credit WHERE credit_id = АСВ_204_АА 17265286) ORDER BY debtor_id DESC LIMIT 30


ОШИБКА:  ошибка синтаксиса (примерное положение: "17265286")
LINE 1: ...d FROM opg_cr_credit WHERE credit_id = АСВ_204_АА 17265286);
                                                             ^

SELECT COUNT(*) as _count FROM opg_dt_debtor WHERE debtor_id IN (SELECT debtor_id FROM opg_cr_credit WHERE credit_number LIKE '%АСВ_204_АА 17265286%') AND debtor_id IN (SELECT debtor_id FROM opg_cr_credit WHERE credit_id = АСВ_204_АА 17265286);


SELECT * FROM opg_dt_debtor WHERE debtor_id IN (SELECT debtor_id FROM opg_cr_credit WHERE credit_id = АСВ_204_АА 17265286) ORDER BY debtor_id DESC LIMIT 30


SELECT COUNT(*) as _count FROM opg_dt_debtor WHERE debtor_id IN (SELECT debtor_id FROM opg_cr_credit WHERE credit_id = АСВ_204_АА 17265286);


SELECT * FROM opg_dt_debtor WHERE debtor_id IN (SELECT debtor_id FROM opg_phones_book WHERE normalized_phone LIKE '%9536385412%') AND debtor_id IN (SELECT debtor_id FROM opg_cr_credit WHERE credit_number LIKE '%АСВ_204_АА 17265286%') AND debtor_id IN (SELECT debtor_id FROM opg_cr_credit WHERE credit_id = АСВ_204_АА 17265286) ORDER BY debtor_id DESC LIMIT 30


SELECT COUNT(*) as _count FROM opg_dt_debtor WHERE debtor_id IN (SELECT debtor_id FROM opg_phones_book WHERE normalized_phone LIKE '%9536385412%') AND debtor_id IN (SELECT debtor_id FROM opg_cr_credit WHERE credit_number LIKE '%АСВ_204_АА 17265286%') AND debtor_id IN (SELECT debtor_id FROM opg_cr_credit WHERE credit_id = АСВ_204_АА 17265286);


ОШИБКА:  столбец "АСВ_211_30168232" не существует
LINE 1: ...CT debtor_id FROM opg_cr_credit WHERE credit_id = АСВ_211_30...
                                                             ^

SELECT * FROM opg_dt_debtor WHERE debtor_id IN (SELECT debtor_id FROM opg_cr_credit WHERE credit_id = АСВ_211_30168232) ORDER BY debtor_id DESC LIMIT 30


SELECT COUNT(*) as _count FROM opg_dt_debtor WHERE debtor_id IN (SELECT debtor_id FROM opg_cr_credit WHERE credit_id = АСВ_211_30168232);


ОШИБКА:  столбец "АСВ_207_18330468" не существует
LINE 1: ...CT debtor_id FROM opg_cr_credit WHERE credit_id = АСВ_207_18...
                                                             ^

SELECT * FROM opg_dt_debtor WHERE debtor_id IN (SELECT debtor_id FROM opg_cr_credit WHERE credit_id = АСВ_207_18330468) ORDER BY debtor_id DESC LIMIT 30


SELECT COUNT(*) as _count FROM opg_dt_debtor WHERE debtor_id IN (SELECT debtor_id FROM opg_cr_credit WHERE credit_id = АСВ_207_18330468);


SELECT case_id, region FROM opg_timezone WHERE case_id = 543173921;


ОШИБКА:  выполнение оператора отменено из-за тайм-аута

SELECT md_row_id, md_update_datetime, service, debtor_id, event_code, event_date, branch_, credit_bureau, document, event_number_in_file, status FROM opg_rd_credit_bureau WHERE debtor_id = '736124256'


ОШИБКА:  столбец "АСВ_62_199233613" не существует
LINE 1: ...CT debtor_id FROM opg_cr_credit WHERE credit_id = АСВ_62_199...
                                                             ^

SELECT * FROM opg_dt_debtor WHERE debtor_id IN (SELECT debtor_id FROM opg_cr_credit WHERE credit_id = АСВ_62_199233613) ORDER BY debtor_id DESC LIMIT 30


SELECT COUNT(*) as _count FROM opg_dt_debtor WHERE debtor_id IN (SELECT debtor_id FROM opg_cr_credit WHERE credit_id = АСВ_62_199233613);