| From: | Corey Huinker <corey(dot)huinker(at)gmail(dot)com> |
|---|---|
| To: | Daniel Gustafsson <daniel(at)yesql(dot)se> |
| Cc: | David Rowley <dgrowleyml(at)gmail(dot)com>, Andreas Karlsson <andreas(at)proxel(dot)se>, Kirill Reshke <reshkekirill(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Add sortsupport to money_ops, pg_lsn_ops and xid8_ops |
| Date: | 2026-12-05 20:34:52 |
| Message-ID: | CADkLM=ceQrMD9cASoju7vF8nVGgWsMxH78k9i0iBN9s_Qa=V7Q@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
>
> I don't think this pattern indicates a widespread use. We don't know which
> versions of postgres these come from, when these columns were installed
> and how
> stale the data is (if there is data at all). If a service provider at some
> point in time included a small demo database when provisioning a new
> cluster
> this could skew the numbers like this.
>
I agree, mostly. However, because the nature of the source is monitoring,
the table itself might be a demo or backwater but the database it is in is
probably not.
I did ask my source if anyone would be willing to answer some questions
about how/why they use those columns, but that proved impractical or
impossible or both. I suspect that even if we did get in touch with some
customers, there would be a bias in that customers aware enough of the
situation and willing to talk already know that the datatype isn't supposed
to be used and stopped using it.
> It seems hard to imagine that modern apps use the money type at all, and
> unless
> there is a popular ORM that actively used it I would be surprised if even
> semi-modern apps use it.
>
Legacy apps using ORMs seems the most likely avenues for explaining the
usage we are seeing. I poked around, and it seems like only four support
the money type directly: Prisma, TypeORM, Active Record for Ruby On Rails,
and SQLAlchemy. Several others have a synthetic money/Money type that they
do with integers. Of those, the test suites seem to do a good job of
cleaning up after themselves, except for Active Record, which can leave a
column named postgresql_money laying around. That does seem like something
that can be differentiated just from logs, so I've forwarded a request for
percentages of that.
It's probably worth reaching out to the maintainers of each of those
products to see if they're aware that the datatype is on the way out, and
what can be done to move away from using the datatype itself.
| From | Date | Subject | |
|---|---|---|---|
| Previous Message | Dave Sharpe | 2026-12-05 20:14:06 | Re: VACUUM FULL / REPACK on the primary make hot standby queries miss rows (2012 report, still unfixed) |