在 Postgres 中没有找到任何名为 table_name 的关系
Did not find any relation named table_name in Postgres
当我尝试在我的架构中列出有关 table boarding_passes
的信息时,出现错误:
demo=# \d boarding_passes
Did not find any relation named "boarding_passes".
这是我的架构中所有关系的列表:
demo=# \dt bookings.*
List of relations
Schema | Name | Type | Owner
----------+-----------------+-------+-------
bookings | aircrafts | table | dba
bookings | airports | table | dba
bookings | boarding_passes | table | dba
bookings | bookings | table | dba
bookings | flights | table | dba
bookings | seats | table | dba
bookings | ticket_flights | table | dba
bookings | tickets | table | dba
(8 rows)
因为bookings
显然不在你的search_path
上,你需要使用
\d bookings.boarding_passes
当我尝试在我的架构中列出有关 table boarding_passes
的信息时,出现错误:
demo=# \d boarding_passes
Did not find any relation named "boarding_passes".
这是我的架构中所有关系的列表:
demo=# \dt bookings.*
List of relations
Schema | Name | Type | Owner
----------+-----------------+-------+-------
bookings | aircrafts | table | dba
bookings | airports | table | dba
bookings | boarding_passes | table | dba
bookings | bookings | table | dba
bookings | flights | table | dba
bookings | seats | table | dba
bookings | ticket_flights | table | dba
bookings | tickets | table | dba
(8 rows)
因为bookings
显然不在你的search_path
上,你需要使用
\d bookings.boarding_passes