Created
November 18, 2018 15:27
-
-
Save bliiir/5cb0b360ace7b43986990f903baca8c8 to your computer and use it in GitHub Desktop.
Revisions
-
bliiir created this gist
Nov 18, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ INSERT INTO bucket( market_id, timeframe_id, time_close, price_open, price_high, price_low, price_close, volume) SELECT market_id, timeframe_id, time_close, price_open, price_high, price_low, price_close, volume FROM bucket_temp ON CONFLICT (market_id, timeframe_id, time_close) DO NOTHING;