Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tipg/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ async def get_collection_index( # noqa: C901
table_id = table["schema"] + "." + table["name"]
confid = table["schema"] + "_" + table["name"]

if table_id == "pg_temp.tipg_catalog":
if table_id == "pg_temp.tipg_catalog" or table_id == "public.tipg_catalog":
continue

table_conf = table_confs.get(confid, TableConfig())
Expand Down
4 changes: 1 addition & 3 deletions tipg/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async def __call__(self, conn: asyncpg.Connection):
if not self.skip_sql_execution:
schemas = ",".join(["pg_temp", *self.schemas])
if self.skip_sql_execution:
schemas = "".join([*self.schemas])
schemas = ",".join(["public", "pgstac"])

logger.debug(f"Looking for Tables and Functions in {schemas} schemas")

Expand Down Expand Up @@ -88,8 +88,6 @@ async def connect_to_db(
if not settings:
settings = PostgresSettings()

print(schemas)

con_init = connection_factory(schemas, user_sql_files, skip_sql_execution)

app.state.pool = await asyncpg.create_pool_b(
Expand Down
Loading