public inbox for [email protected]  
help / color / mirror / Atom feed
Re: How to pass a list of locations (longitude, latitude) to a PostgreSQL/PostGIS stored function?
2+ messages / 2 participants
[nested] [flat]

* Re: How to pass a list of locations (longitude, latitude) to a PostgreSQL/PostGIS stored function?
@ 2025-03-25 17:58  Christoph Berg <[email protected]>
  0 siblings, 1 reply; 2+ messages in thread

From: Christoph Berg @ 2025-03-25 17:58 UTC (permalink / raw)
  To: Alexander Farber <[email protected]>; +Cc: pgsql-general

Re: Tom Lane
> You might be best advised to create a composite
> type like "location (long bigint, lat bigint)" and use an array of
> that.

Or use the geometry types from PostGIS, since you are probably going
to do geo lookups on these points anyway.

Christoph






^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: How to pass a list of locations (longitude, latitude) to a PostgreSQL/PostGIS stored function?
@ 2025-03-25 20:21  Thiemo Kellner <[email protected]>
  parent: Christoph Berg <[email protected]>
  0 siblings, 0 replies; 2+ messages in thread

From: Thiemo Kellner @ 2025-03-25 20:21 UTC (permalink / raw)
  To: [email protected]


El 25-03-25 a las 18:58, Christoph Berg escribió:
> Re: Tom Lane
>> You might be best advised to create a composite
>> type like "location (long bigint, lat bigint)" and use an array of
>> that.
> Or use the geometry types from PostGIS, since you are probably going
> to do geo lookups on these points anyway.
>
> Christoph
Why is pure SQL not an option instead of a procedure/function?






^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2025-03-25 20:21 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-03-25 17:58 Re: How to pass a list of locations (longitude, latitude) to a PostgreSQL/PostGIS stored function? Christoph Berg <[email protected]>
2025-03-25 20:21 ` Thiemo Kellner <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox