dimitarvp

dimitarvp

Hey everybody, in our CI we regularly get this message while MIX_ENV=test mix ecto.migrate is executing:

%Postgrex.Query{columns: nil, name: “ecto_512389”, param_formats: nil, param_oids: nil, param_types: nil, ref: reference<0.3268973948.3458203652.198652>, result_formats: nil, result_oids: nil, result_types: nil, statement: “stripped”, types: nil} uses unknown oid 20031 causing bootstrap

(The statement above is an UPDATE with a condition.)

I also regularly get the message when I drop and re-create my local test DB and then run migrations on it.

I poked around the net but the idea of Postgres OIDs doesn’t seem to apply to our app at all. I grep-ed all our migrations but couldn’t find anything about OIDs either.

Anybody has an idea? It’s a warning that doesn’t break anything but since it occurs regularly, it piqued my interest.

Showing Posts 1 to 10

sanswork

sanswork

Not sure if you’ve seen it in your searches already but the postgrex readme has some discussion about their use of oids and some considerations around ints that might be relevant?

dimitarvp

dimitarvp OP

I did, but it says absolutely nothing to me. The only thing OID-related to our DB is the fact that PG still gives OIDs to our tables (automatically) but we haven’t configured any table to use OIDs inside them.

sanswork

sanswork

Any way you can post the contents of statement with maybe the data stripped but the query intact?

dimitarvp

dimitarvp OP

Come to think of it, it’s not something compromising anyway:

UPDATE "debits" AS d0 SET "counterparty" = $1 WHERE (d0."type" = ‘customer_charge_recoupment’)

josevalim

josevalim

Creator of Elixir

Any chance you have migrations or anything changing the DB schema running as you run your suite?

dimitarvp

dimitarvp OP

It’s possible. There are quite a few of them and I am not quite caught up with them just yet.

For now I am aware that we add, remove and add values to enums on several places. No materialized views or views of any kind. No stored procedures.

josevalim

josevalim

Creator of Elixir

That may be the root cause. If you change the database structure, then whatever Postgres has cached will fail. But this should only happen if they are changed while the suite runs.

dimitarvp

dimitarvp OP

I am not excluding possible races. I happen to see the message only while migrating a freshly created test DB though, not during mix test. (Not sure if you implied that by saying “suite”.)

Is the error message serious? I honestly can’t say even after searching for PG OIDs for a while.

josevalim

josevalim

Creator of Elixir

Right, so it is happening because you are doing queries while you run your migrations. So Postgrex needs to update the cached data as it goes.

dimitarvp

dimitarvp OP

Does that mean that Postgrex is simply rebooting its supervision tree? Because if it caches types as a performance optimization technique, I am guessing it will have to reboot something after they change?

Where Next? Top

Trending in Questions Top

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
water
I’m aware of 2 such projects, are there others? git: GitHub - team-alembic/realworld: A fullstack Phoenix LiveView application with back...
New
itzmidinesh
Hi all, I’m working on a Phoenix project where I need to make external HTTP requests and I’m trying to choose between Req and HTTPoison....
New
leoschweizer
Hi, we run different LLM models across a cluster, with each node loading a configurable subset. Model-specific queues let nodes consume ...
New
Stef-Verniers
Hello I’ve been coding in Elixir for almost two years now because of my current job where we implemented Elixir in our application. But ...
New
csmr
Hi all, I’m new here and would like to hear peoples views on my Elixir/Phoenix based game-engine! :smiley: Mutonex gamedesign was finish...
New
matthias.oberleitner
Hi, I’m evaluating Ash as a foundation for our future business applications. So far I love it, and there’s just one usecase I haven’t be...
New

Other Trending Topics Top

dominicletz
Hey there, I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first. ...
New
raa-ziq
Hi everyone :waving_hand: I wanted to share something I’ve been building — NowBlind, a random chat app designed to help people discover ...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
kip
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews