repoint postgres targets to new targets

This commit is contained in:
Paul Trowbridge 2025-08-27 10:31:37 -04:00
parent d653917c8b
commit 3c854ed0a4
2 changed files with 4 additions and 4 deletions

View File

@ -194,7 +194,7 @@ BEGIN
tprice = tp.price,
tmath = to_json(tp.math),
volume_range = tp.vol::TEXT
FROM pricequote.target_prices tp
FROM pricequote.target_prices_base tp
WHERE
tp.stlc = q.stlc
AND tp.ds = q.v1ds
@ -209,7 +209,7 @@ BEGIN
UPDATE pricequote.queue q
SET
tprice_last = tp2.price
FROM pricequote.target_prices tp2
FROM pricequote.target_prices_base tp2
WHERE
q.last_dataseg IS NOT NULL
AND tp2.stlc = q.stlc

View File

@ -265,7 +265,7 @@ BEGIN
,_tmath
,_volume_range
FROM
pricequote.target_prices tp
pricequote.target_prices_base tp
WHERE
tp.stlc = _stlc
AND tp.ds = _v1ds
@ -283,7 +283,7 @@ BEGIN
INTO
_tprice_last
FROM
pricequote.target_prices tp
pricequote.target_prices_base tp
WHERE
tp.stlc = _stlc
AND tp.ds = _last_dataseg