Introducing PopSQL + dbt. The first SQL editor with built-in dbt support.Read more →

How to Rename a Table in PostgreSQL

alter table events rename to events_backup;

Ready for a modern SQL editor?