pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedcolumn of table
4+ messages / 3 participants
[nested] [flat]
* column of table
@ 2020-09-17 23:09 Henry Francisco Garcia Cortez <garcortez@gmail.com>
2020-09-17 23:24 ` Re: column of table Scott Ribe <scott_ribe@elevated-dev.com>
2020-09-18 01:15 ` Re: column of table Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 2 replies; 4+ messages in thread
From: Henry Francisco Garcia Cortez @ 2020-09-17 23:09 UTC (permalink / raw)
To: pgsql-admin@lists.postgresql.org
This query Grant select on table (name table) to (name user) but I want to
show only a column and rest of column that remain blocked
--
Ing. Henry G. Cortez
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: column of table
2020-09-17 23:09 column of table Henry Francisco Garcia Cortez <garcortez@gmail.com>
@ 2020-09-17 23:24 ` Scott Ribe <scott_ribe@elevated-dev.com>
1 sibling, 0 replies; 4+ messages in thread
From: Scott Ribe @ 2020-09-17 23:24 UTC (permalink / raw)
To: Henry Francisco Garcia Cortez <garcortez@gmail.com>; +Cc: pgsql-admin@lists.postgresql.org
> On Sep 17, 2020, at 5:09 PM, Henry Francisco Garcia Cortez <garcortez@gmail.com> wrote:
>
> This query Grant select on table (name table) to (name user) but I want to show only a column and rest of column that remain blocked
You probably want to create a view for this purpose.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: column of table
2020-09-17 23:09 column of table Henry Francisco Garcia Cortez <garcortez@gmail.com>
@ 2020-09-18 01:15 ` Tom Lane <tgl@sss.pgh.pa.us>
2020-09-18 03:30 ` Re: column of table Henry Francisco Garcia Cortez <garcortez@gmail.com>
1 sibling, 1 reply; 4+ messages in thread
From: Tom Lane @ 2020-09-18 01:15 UTC (permalink / raw)
To: Henry Francisco Garcia Cortez <garcortez@gmail.com>; +Cc: pgsql-admin@lists.postgresql.org
Henry Francisco Garcia Cortez <garcortez@gmail.com> writes:
> This query Grant select on table (name table) to (name user) but I want to
> show only a column and rest of column that remain blocked
Doesn't a per-column GRANT do what you want?
regards, tom lane
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: column of table
2020-09-17 23:09 column of table Henry Francisco Garcia Cortez <garcortez@gmail.com>
2020-09-18 01:15 ` Re: column of table Tom Lane <tgl@sss.pgh.pa.us>
@ 2020-09-18 03:30 ` Henry Francisco Garcia Cortez <garcortez@gmail.com>
0 siblings, 0 replies; 4+ messages in thread
From: Henry Francisco Garcia Cortez @ 2020-09-18 03:30 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-admin@lists.postgresql.org
first I'm going to revoke all tables in schema public from public then I
want only to show a column of the table
El jue., 17 sept. 2020 a las 20:15, Tom Lane (<tgl@sss.pgh.pa.us>) escribió:
> Henry Francisco Garcia Cortez <garcortez@gmail.com> writes:
> > This query Grant select on table (name table) to (name user) but I want
> to
> > show only a column and rest of column that remain blocked
>
> Doesn't a per-column GRANT do what you want?
>
> regards, tom lane
>
--
Ing. Henry G. Cortez
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2020-09-18 03:30 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-09-17 23:09 column of table Henry Francisco Garcia Cortez <garcortez@gmail.com>
2020-09-17 23:24 ` Scott Ribe <scott_ribe@elevated-dev.com>
2020-09-18 01:15 ` Tom Lane <tgl@sss.pgh.pa.us>
2020-09-18 03:30 ` Henry Francisco Garcia Cortez <garcortez@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox