Coder Social home page Coder Social logo

Comments (3)

brianc avatar brianc commented on July 27, 2024

I have no idea - kinda bizzare they change OIDs on columns based on the projection (I'm assuming you're using ST_SetSRID)? This really isn't specific to this library at all...I never really ended up relying on OIDs for much outside of the very standard columns because things get weird. I remember stuff like enums and other things also being kinda "dynamic" oids. Honestly didn't dive extremely deep into, just was like "yeah no that seems outta scope"

from node-pg-types.

mhkeller avatar mhkeller commented on July 27, 2024

Yea pretty weird indeed. I wasn't using ST_SetSRID, I was just using shp2pgsql, which maybe uses that internally? I imagine ST_SetSRID would have the same effect. I'll keep playing around with it.

from node-pg-types.

mhkeller avatar mhkeller commented on July 27, 2024

For anyone else who stumbles upon this, I think switching to the udt_name column in the information_schema.columns table may be a better way to go...

from node-pg-types.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.