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

Aperta
#1,101 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
postgresql, rust
Ambito
database

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Rust
Stelle
2.6k
Fork
175
Merge medio
14h 16m
PR unite (30g)
43

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di sqlpage/SQLPage

Tutte le issue di sqlpage/SQLPage

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.