Thread: grants

grants

From
Graf László
Date:
Hi

In wich system table, like pg_tables, are stored the the grant attributes?
I mean those attributes, what discribe the SELECT, INSERT, etc. rights of a
use (ex. postgres) for a selected table.


--
Graf László

Re: grants

From
Michael Fuhr
Date:
On Fri, Dec 03, 2004 at 12:22:58PM +0100, Graf László wrote:

> In wich system table, like pg_tables, are stored the the grant attributes?
> I mean those attributes, what discribe the SELECT, INSERT, etc. rights of a
> use (ex. postgres) for a selected table.

What are you trying to do?  There are different ways to get permission
information, some more appropriate than others depending on your needs.
To learn more see the "System Catalogs", "Information Schema", and
"Access Privilege Inquiry Functions" documentation:

http://www.postgresql.org/docs/7.4/static/catalogs.html
http://www.postgresql.org/docs/7.4/static/information-schema.html
http://www.postgresql.org/docs/7.4/static/functions-misc.html

The Information Schema is available in 7.4 and later.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

Re: grants

From
"renneyt@yahoo.com"
Date:
I ran into a problem while compiling PGSQL  8.0.3. I am on Solaris 10
(Sparc) running GCC 4.0.

The problem is as follows:


gmake[4]: Leaving directory `/opt/sft/postgresql-8.0.3/src/port'
gmake[3]: Leaving directory `/opt/sft/postgresql-8.0.3/src/timezone'
gcc -O3 -pthreads -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wold-style-definition -Wendif-labels
-fno-strict-aliasing -L../../src/port -L/opt/csw/gcc4/lib/
-L/usr/local/lib -L/usr/local/openldap/lib
-L/usr/local/BerkeleyDB.4.3/lib -L/usr/local/ssl/lib
-L/usr/local/ssl/lib -Wl,-R/usr/local/pgsql/lib  access/SUBSYS.o
bootstrap/SUBSYS.o catalog/SUBSYS.o parser/SUBSYS.o commands/SUBSYS.o
executor/SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o main/SUBSYS.o
nodes/SUBSYS.o optimizer/SUBSYS.o port/SUBSYS.o postmaster/SUBSYS.o
regex/SUBSYS.o rewrite/SUBSYS.o storage/SUBSYS.o tcop/SUBSYS.o
utils/SUBSYS.o ../../src/timezone/SUBSYS.o  -lpgport_srv -lssl -lcrypto
-lz -lreadline -ltermcap -lrt -lresolv -lgen -lsocket -lnsl -ldl -lm  -o
postgres
Undefined                       first referenced
 symbol                             in file
isinf                               utils/SUBSYS.o
ld: fatal: Symbol referencing errors. No output written to postgres
collect2: ld returned 1 exit status
gmake[2]: *** [postgres] Error 1
gmake[2]: Leaving directory `/opt/sft/postgresql-8.0.3/src/backend'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/opt/sft/postgresql-8.0.3/src'



GCC version

Configured with: ../sources/gcc-4.0.0/configure --prefix=/opt/csw/gcc4
--with-local-prefix=/opt/csw --without-gnu-as --with-as=/usr/ccs/bin/as
--without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix
--enable-shared --enable-multilib --enable-nls --with-included-gettext
--with-libiconv-prefix=/opt/csw --with-x --enable-java-awt=xlib
--with-system-zlib --enable-languages=c,c++,f95,java,objc,ada
Thread model: posix
gcc version 4.0.0

Thanks

--
<><



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.18/89 - Release Date: 9/2/2005


Problems during linking of PGSQL 8.0.3

From
"renneyt@yahoo.com"
Date:
renneyt@yahoo.com wrote:

>I ran into a problem while compiling PGSQL  8.0.3. I am on Solaris 10
>(Sparc) running GCC 4.0.
>
>The problem is as follows:
>
>
>gmake[4]: Leaving directory `/opt/sft/postgresql-8.0.3/src/port'
>gmake[3]: Leaving directory `/opt/sft/postgresql-8.0.3/src/timezone'
>gcc -O3 -pthreads -Wall -Wmissing-prototypes -Wpointer-arith
>-Wdeclaration-after-statement -Wold-style-definition -Wendif-labels
>-fno-strict-aliasing -L../../src/port -L/opt/csw/gcc4/lib/
>-L/usr/local/lib -L/usr/local/openldap/lib
>-L/usr/local/BerkeleyDB.4.3/lib -L/usr/local/ssl/lib
>-L/usr/local/ssl/lib -Wl,-R/usr/local/pgsql/lib  access/SUBSYS.o
>bootstrap/SUBSYS.o catalog/SUBSYS.o parser/SUBSYS.o commands/SUBSYS.o
>executor/SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o main/SUBSYS.o
>nodes/SUBSYS.o optimizer/SUBSYS.o port/SUBSYS.o postmaster/SUBSYS.o
>regex/SUBSYS.o rewrite/SUBSYS.o storage/SUBSYS.o tcop/SUBSYS.o
>utils/SUBSYS.o ../../src/timezone/SUBSYS.o  -lpgport_srv -lssl -lcrypto
>-lz -lreadline -ltermcap -lrt -lresolv -lgen -lsocket -lnsl -ldl -lm  -o
>postgres
>Undefined                       first referenced
> symbol                             in file
>isinf                               utils/SUBSYS.o
>ld: fatal: Symbol referencing errors. No output written to postgres
>collect2: ld returned 1 exit status
>gmake[2]: *** [postgres] Error 1
>gmake[2]: Leaving directory `/opt/sft/postgresql-8.0.3/src/backend'
>gmake[1]: *** [all] Error 2
>gmake[1]: Leaving directory `/opt/sft/postgresql-8.0.3/src'
>
>
>




When I switched to the GNU linker I got the following:

gmake[3]: Leaving directory `/opt/sft/postgresql-8.1beta1/src/backend/utils'
gmake -C ../../src/timezone all
gmake[3]: Entering directory `/opt/sft/postgresql-8.1beta1/src/timezone'
gmake -C ../../src/port all
gmake[4]: Entering directory `/opt/sft/postgresql-8.1beta1/src/port'
gmake[4]: Nothing to be done for `all'.
gmake[4]: Leaving directory `/opt/sft/postgresql-8.1beta1/src/port'
gmake[3]: Leaving directory `/opt/sft/postgresql-8.1beta1/src/timezone'
gcc -O3 -pthreads -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wold-style-definition -Wendif-labels
-fno-strict-aliasing -L../../src/port -L/opt/csw/gcc4/lib/
-L/usr/local/lib -L/usr/local/openldap/lib
-L/usr/local/BerkeleyDB.4.3/lib -L/usr/local/ssl/lib
-L/usr/local/ssl/lib -Wl,-rpath,/usr/local/pgsql/lib -Wl,-E
access/SUBSYS.o bootstrap/SUBSYS.o catalog/SUBSYS.o parser/SUBSYS.o
commands/SUBSYS.o executor/SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o
main/SUBSYS.o nodes/SUBSYS.o optimizer/SUBSYS.o port/SUBSYS.o
postmaster/SUBSYS.o regex/SUBSYS.o rewrite/SUBSYS.o storage/SUBSYS.o
tcop/SUBSYS.o utils/SUBSYS.o ../../src/timezone/SUBSYS.o
../../src/port/libpgport_srv.a    -lssl -lcrypto -lz -lreadline
-ltermcap -lrt -lresolv -lgen -lsocket -lnsl -ldl -lm  -o postgres
utils/SUBSYS.o(.text+0x18670): In function `is_infinite':
: undefined reference to `isinf'
utils/SUBSYS.o(.text+0x1b9ac): In function `float8in':
: undefined reference to `isinf'
utils/SUBSYS.o(.text+0x1bd10): In function `float4in':
: undefined reference to `isinf'
utils/SUBSYS.o(.text+0x1bff8): In function `float4out':
: undefined reference to `isinf'
utils/SUBSYS.o(.text+0x1c0f8): In function `float8out':
: undefined reference to `isinf'
collect2: ld returned 1 exit status
gmake[2]: *** [postgres] Error 1
gmake[2]: Leaving directory `/opt/sft/postgresql-8.1beta1/src/backend'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/opt/sft/postgresql-8.1beta1/src'
gmake: *** [all] Error 2







>
>GCC version
>
>Configured with: ../sources/gcc-4.0.0/configure --prefix=/opt/csw/gcc4
>--with-local-prefix=/opt/csw --without-gnu-as --with-as=/usr/ccs/bin/as
>--without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix
>--enable-shared --enable-multilib --enable-nls --with-included-gettext
>--with-libiconv-prefix=/opt/csw --with-x --enable-java-awt=xlib
>--with-system-zlib --enable-languages=c,c++,f95,java,objc,ada
>Thread model: posix
>gcc version 4.0.0
>
>Thanks
>
>
>


--
<><



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.18/89 - Release Date: 9/2/2005