ERROR: relation "sqlpage_files" does not exist at character 15

未关闭
#1,101 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
38/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
postgresql, rust
领域
database

调研方向

Start by reading the referenced code in src/filesystem.rs around line 235 and trace when it runs during container startup. Reproduce with PostgreSQL 14 and SQLPage 0.39.1, then check whether the query runs when the sqlpage_files table is absent. Done means the repeated startup error is explained and, if confirmed unintended, no longer appears.

由索引模型根据 Issue 内容生成。

描述

bug waiting for response
Introduction

I have had sqlpage running with a postgres database for a long time. All functions are working fine.
I recently set up some error monitoring for the logs, and notice repeating error logs in tpostgres container from sqlpgae.

2025-11-14 11:35:59.630 [17009] ERROR:  relation "sqlpage_files" does not exist at character 15
2025-11-14 11:35:59.630 [17009] STATEMENT:  SELECT 1 from sqlpage_files WHERE last_modified >= $1 AND path = $2

I have done a thorough search of my code and do not find any sql with sqlpage_files in them.
I also searched queries that use last_modified and path and found nothing to ensure this was not because of some dynamic queries.

I noticed that these logs definitely show up if I restart the sqlpage container.
I am unsure if they also show up at other times after the initial start up of the container.

Does this code from within the container runs this sql and expects this table to exist even if there is no functionality that is looking for this table ?

Version information
  • OS : Ubuntu 22.04.5 LTS
  • Database : Postgres 14
  • SQLPage Version : 0.39.1
Additional context

All functionalities are working fine and there is no visible issue.
Only the error logs in the postgres DB is the issue.

主要语言
Rust
星标
2.6k
派生
175
平均合并
14 小时 16 分钟
30 天内合并 PR
43

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

sqlpage/SQLPage 的其他 Issue

查看 sqlpage/SQLPage 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。