Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

246
Views
postgres: mueve el registro de una tabla a otra (mismo esquema) después de 24 horas de la inserción

Tengo una tabla X y otra tabla Y con el mismo esquema. Cuando se inserta un registro en X, después de 24 horas, debe moverse a Y automáticamente. ¿Cómo puedo lograr esto en postgres?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Postgres no tiene tal automatización, debe usar herramientas externas. Por ejemplo, haga un cronjob para ejecutar el script que hará eso, algo como : pslq -d dbname -c "begin; with d as (delete from x where ts < now() - '1 day'::interval returning *) insert into yselect * from d;; end; "

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!