Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
derefr
4y ago
0 comments
Share
You could also take advantage of PG's function/field equivalence:
-- equivalent to deref_jsonb('"sdfasdf"'::jsonb) select ('"sdfasdf"'::jsonb).deref_jsonb;
(I'd suggest naming the function "inner_text", for familiarity to JS devs :P)
0 comments
default
newest
oldest
megous
4y ago
Oh my. :) There's always some quirky little thing to learn about PostgreSQL, lol.
j
/
k
navigate · click thread line to collapse