Bug report
This was asked as a question here, but it is a bug, since it rejects valid sql.
Describe the bug
Each session has access to a temporary table schema, pg_temp_nnn, which is aliased to pg_temp. It is documented here.
We often use pg_temp in our migrations to create temporary functions or tables that we do not need after the migration completes.
postgrestools reports an error for any use of pg_temp:
✖ schema "pg_temp" does not exist
However, this is not an error, as code using pg_temp runs just fine.
To Reproduce
create table pg_temp.foo (id int);
select * from pg_temp.foo
Expected behavior
The above should not yield an error.
System information
Bug report
This was asked as a question here, but it is a bug, since it rejects valid sql.
Describe the bug
Each session has access to a temporary table schema,
pg_temp_nnn, which is aliased topg_temp. It is documented here.We often use
pg_tempin our migrations to create temporary functions or tables that we do not need after the migration completes.postgrestoolsreports an error for any use ofpg_temp:However, this is not an error, as code using
pg_tempruns just fine.To Reproduce
Expected behavior
The above should not yield an error.
System information