using adbin, conbin, etc.

Started by Christopher Kings-Lynneover 22 years ago5 messageshackers
Jump to latest
#1Christopher Kings-Lynne
chriskl@familyhealth.com.au

Hi guys,

I hear that we're supposed to use the 'bin' versions of the 'src' columns
where possible. I would like then to use them in phpPgAdmin for displaying
defaults and stuff. Is there some way to use them from SQL? Cos it all
looks like garbage to me :)

Chris

#2Rod Taylor
rbt@rbt.ca
In reply to: Christopher Kings-Lynne (#1)
Re: using adbin, conbin, etc.

On Tue, 2003-07-29 at 21:45, Christopher Kings-Lynne wrote:

Hi guys,

I hear that we're supposed to use the 'bin' versions of the 'src' columns
where possible. I would like then to use them in phpPgAdmin for displaying
defaults and stuff. Is there some way to use them from SQL? Cos it all
looks like garbage to me :)

Use the various pg_get_...() functions wherever you can.

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Rod Taylor (#2)
Re: using adbin, conbin, etc.

Rod Taylor <rbt@rbt.ca> writes:

On Tue, 2003-07-29 at 21:45, Christopher Kings-Lynne wrote:

I hear that we're supposed to use the 'bin' versions of the 'src' columns
where possible. I would like then to use them in phpPgAdmin for displaying
defaults and stuff. Is there some way to use them from SQL? Cos it all
looks like garbage to me :)

Use the various pg_get_...() functions wherever you can.

And if you can't find one that does what you want, ask for it.
The last thing we want is client-side code digging into those internal
representations --- we change 'em frequently.

regards, tom lane

#4Christopher Kings-Lynne
chriskl@familyhealth.com.au
In reply to: Christopher Kings-Lynne (#1)
Re: using adbin, conbin, etc.

Use the various pg_get_...() functions wherever you can.

And if you can't find one that does what you want, ask for it.
The last thing we want is client-side code digging into those internal
representations --- we change 'em frequently.

I want pg_get_* functions for every PostgreSQL object :P

Chris

#5Christopher Kings-Lynne
chriskl@familyhealth.com.au
In reply to: Christopher Kings-Lynne (#1)
Re: using adbin, conbin, etc.

And if you can't find one that does what you want, ask for it.
The last thing we want is client-side code digging into those internal
representations --- we change 'em frequently.

I want pg_get_* functions for every PostgreSQL object :P

And I want an easy way of parsing aclitem[]'s so I don't have to do it
manually in PHP, trying to handle usernames and grantors that have commas,
spaces, backslashes and double quotes in them...

Chris