repoint postgres targets to new targets
This commit is contained in:
parent
d653917c8b
commit
3c854ed0a4
@ -194,7 +194,7 @@ BEGIN
|
|||||||
tprice = tp.price,
|
tprice = tp.price,
|
||||||
tmath = to_json(tp.math),
|
tmath = to_json(tp.math),
|
||||||
volume_range = tp.vol::TEXT
|
volume_range = tp.vol::TEXT
|
||||||
FROM pricequote.target_prices tp
|
FROM pricequote.target_prices_base tp
|
||||||
WHERE
|
WHERE
|
||||||
tp.stlc = q.stlc
|
tp.stlc = q.stlc
|
||||||
AND tp.ds = q.v1ds
|
AND tp.ds = q.v1ds
|
||||||
@ -209,7 +209,7 @@ BEGIN
|
|||||||
UPDATE pricequote.queue q
|
UPDATE pricequote.queue q
|
||||||
SET
|
SET
|
||||||
tprice_last = tp2.price
|
tprice_last = tp2.price
|
||||||
FROM pricequote.target_prices tp2
|
FROM pricequote.target_prices_base tp2
|
||||||
WHERE
|
WHERE
|
||||||
q.last_dataseg IS NOT NULL
|
q.last_dataseg IS NOT NULL
|
||||||
AND tp2.stlc = q.stlc
|
AND tp2.stlc = q.stlc
|
||||||
|
@ -265,7 +265,7 @@ BEGIN
|
|||||||
,_tmath
|
,_tmath
|
||||||
,_volume_range
|
,_volume_range
|
||||||
FROM
|
FROM
|
||||||
pricequote.target_prices tp
|
pricequote.target_prices_base tp
|
||||||
WHERE
|
WHERE
|
||||||
tp.stlc = _stlc
|
tp.stlc = _stlc
|
||||||
AND tp.ds = _v1ds
|
AND tp.ds = _v1ds
|
||||||
@ -283,7 +283,7 @@ BEGIN
|
|||||||
INTO
|
INTO
|
||||||
_tprice_last
|
_tprice_last
|
||||||
FROM
|
FROM
|
||||||
pricequote.target_prices tp
|
pricequote.target_prices_base tp
|
||||||
WHERE
|
WHERE
|
||||||
tp.stlc = _stlc
|
tp.stlc = _stlc
|
||||||
AND tp.ds = _last_dataseg
|
AND tp.ds = _last_dataseg
|
||||||
|
Loading…
Reference in New Issue
Block a user