SELECT * FROM a_table WHERE oid=1234; Или в чём проблема?
не могу узнать из какой таблицы искать) Вот запрос, а снизу выскакивает блок: 2021-02-26 06:42:14.621 MSK 6556 [unknown]: wwwBot@bureauData from 10.50.3.215 [vxid:12/505410 txid:129114413] [CALL waiting]CONTEXT: while updating tuple (12889,70) in relation "td_phones" SQL statement "UPDATE bureaudata."td_phones" td SET "type-id" = COALESCE(pn."te_type-id", pn."type-id"), "type-text" = COALESCE(pn."te_type-text", pn."type-text"), "number" = COALESCE(pn."te_number", pn."number"), "actuality-date" = pn."te_actuality-date", "data-status" = pn."te_event-status", "last-updated-date" = CURRENT_TIMESTAMP, "parent-id" = COALESCE(pn."te_parent-id", pn."parent-id"), "parent-relation-type" = COALESCE(pn."te_parent-relation-type", pn."parent-relation-type") FROM phone_agg pn WHERE td."key-id" = pn."phone-id" AND pn."te_actuality-date" >= pn."actuality-date"" PL/pgSQL function "pin_update-aggregated-phone"(character varying) line 60 at SQL statement SQL statement "SELECT (SELECT "pin_update-aggregated-phone"('t_phone_agg'))" PL/pgSQL function "pip_process-contact-data"(bigint) line 509 at assignment SQL statement "CALL bureaudata."pip_process-contact-data"(packageId)" PL/pgSQL function "pip_process-data-record"(bigint) line 86 at CALL SQL statement "CALL bureaudata."pip_process-data-record"(x_packageid)" PL/pgSQL function "pen_process-operation"(bigint) line 43 at CALL SQL statement "CALL bureaudata."pen_process-operation"(packageId)" PL/pgSQL function "pex_process-operation"(text,integer) line 40 at CALL 2021-02-26 06:42:14.621 MSK 6556 [unknown]: wwwBot@bureauData from 10.50.3.215 [vxid:12/505410 txid:129114413] [CALL waiting]STATEMENT: CALL bureaudata."pex_process-operation"($1,$2) 2021-02-26 06:42:24.146 MSK 6556 [unknown]: wwwBot@bureauData from 10.50.3.215 [vxid:12/505410 txid:129114413] [CALL waiting]LOG: process 6556 acquired ShareLock on transaction 129114416 after 36195.288 ms
Эээ... и при чём тут oid-ы, вообще?
Обсуждают сегодня