Re: Doc of typmod arg perhaps deserves an update

2024-10-11 Thread Steve Lau
Hi Did you post the wrong link? This one looks same as the one I mentioned. Though I realized that you have replied to this thread: https://www.postgresql.org/message-id/56EA3507.6090701%40anastigmatix.net Regards, Steve. > On Oct 11, 2024, at 8:42 PM, Chapman Flack wrote: > > On 10/11/24 01

Re: Doc of typmod arg perhaps deserves an update

2024-10-11 Thread Chapman Flack
On 10/11/24 01:33, Steve Lau wrote: > Before hitting the issue, I thought -1 will be passed if and only if > this type does not have type modifiers, as it is indeed unknown. However, > it surprises me that it could also be unknown if your type needs > type modifiers and the type modifiers have been

Doc of typmod arg perhaps deserves an update

2024-10-10 Thread Steve Lau
# Context I hit the issue described in this thread when building my toy pgvector implementation: https://www.postgresql.org/message-id/162867790903161317q178e11e6ie276d1254c279dd1%40mail.gmail.com, TLDR of the thread is that: When you define a new custom type that needs a type modifier, it is