title: Postgresql / Timescaledb ERROR: Deprecated trigger function should not be invoked
body: <p>I work with postgresql boosted with timescaledb fork (pretty impressed with its performance while it worked ;)<br>
  I got a script that downloads data, modifies it and puts into a csv file.
  Then a psql script is invoked to create a temp table that inserts data into the database<br></p>
  
  <pre><code>psql -U postgres -d q1 -c "CREATE TABLE tmpp (time bigint NOT NULL, ask real NOT NULL, bid real NOT NULL)"
  psql -U postgres -d q1 -c "\copy tmpp (time, ask, bid) from '/sth/sth.csv' delimiter ',' CSV"
  psql -U postgres -d q1 -c "insert into realfun select * from tmpp"
  psql -U postgres -d q1 -c "DROP TABLE tmpp"
  </code></pre>
  
  <p>Funny thing is, that it worked for me before, but now I got an error :</p>
  
  <pre><code>ERROR:  Deprecated trigger function should not be invoked
  </code></pre>
  
  <p>I must have messed up sth, but cant figure out what it is [how original]<br>
  I will be happy to provide more details, if needed<br>
  I cannot find anything similar in google, please advise</p>