--------------------------------------------------
From: <pgbr-geral-requ...@listas.postgresql.org.br>
Sent: Thursday, December 02, 2010 12:00 PM
To: <pgbr-geral@listas.postgresql.org.br>
Subject: Digest pgbr-geral, volume 24, assunto 4

> Send pgbr-geral mailing list submissions to
> pgbr-geral@listas.postgresql.org.br
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
> or, via email, send a message with subject or body 'help' to
> pgbr-geral-requ...@listas.postgresql.org.br
>
> You can reach the person managing the list at
> pgbr-geral-ow...@listas.postgresql.org.br
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of pgbr-geral digest..."
>
>
> Tópicos de Hoje:
>
>   1. Re: Usuário com privilégios (Hudyson Santos Barbosa)
>   2. Re: Valor Default - Date (Osvaldo Kussama)
>   3. PostgreSQL em Cluster (Renato Ricci)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 2 Dec 2010 08:33:20 -0400
> From: Hudyson Santos Barbosa <hudy...@gmail.com>
> Subject: Re: [pgbr-geral] Usuário com privilégios
> To: Comunidade PostgreSQL Brasileira
> <pgbr-geral@listas.postgresql.org.br>
> Message-ID:
> <aanlktikupf1i0-gcu99cq4phqr0zmt-eejnx0zde9...@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> É exatamente, o que estou, o que vc me enviou, mas o usuário consegue
> conectar a qualquer banco e consegue criar tabelar, drop e etc. Não pode
> ser, preciso criar o usuário e que eu possa dizer quais seus privilégios e
> isso não acontece, parece que ele herda algo do usuário postgres, sei lá, 
> só
> sei que não está certo.
> Fico grato pela ajuda.
>
> Em 2 de dezembro de 2010 07:09, Leonardo Cezar <lhce...@gmail.com> 
> escreveu:
>
>> 2010/12/1 Hudyson Santos Barbosa <hudy...@gmail.com>:
>> > Boa tarde à todos. Não sei se estou fazendo algo errado ou faltando 
>> > fazer
>> > algo. Mas estou criando um usuário e ele por padrão já pode conectar em
>> > outros bancos, crias tabelas e etc., quero criar um usuário que tenha
>> apenas
>> > permissão de select nas tabelas de certo banco. Não sei se tem algo
>> > diferente no 9.0, alguém pode me dizer o que será??
>>
>> Também não sabemos se vc está fazendo algo errado porque vc não disse
>> como tentou fazer:
>>
>> # CREATE ROLE novo_usuario WITH LOGIN PASSWORD 'novo_usuario';
>>
>> # GRANT SELECT ON tabela TO novo_usuario;
>>
>> Feito.
>>
>> -Leo
>> --
>> Leonardo Cezar
>> http://postgreslogia.wordpress.com
>> _______________________________________________
>> pgbr-geral mailing list
>> pgbr-geral@listas.postgresql.org.br
>> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
>>
>
>
>
> -- 
> Hudyson Barbosa
> Currículum Lattes
> http://lattes.cnpq.br/5927071486620887
> -------------- Próxima Parte ----------
> Um anexo em HTML foi limpo...
> URL: 
> http://listas.postgresql.org.br/pipermail/pgbr-geral/attachments/20101202/76d2d676/attachment.html
>
> ------------------------------
>
> Message: 2
> Date: Thu, 2 Dec 2010 11:41:01 -0200
> From: Osvaldo Kussama <osvaldo.kuss...@gmail.com>
> Subject: Re: [pgbr-geral] Valor Default - Date
> To: Marcelo Silva <marc...@ig.com.br>, Comunidade PostgreSQL
> Brasileira <pgbr-geral@listas.postgresql.org.br>
> Message-ID:
> <aanlktinebykfwryq5_diakxuw5qiwnjwbqi8+i3r7...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Em 2 de dezembro de 2010 09:03, Marcelo Silva <marc...@ig.com.br> 
> escreveu:
>> Pessoal tenho o seguinte campo
>>
>> f01_cadastro date NOT NULL DEFAULT '2010-12-02'::date,
>>
>> Eu coloquei como default > 'NOW' e ele mudou pra data de hoje.
>> Minha intenção é que o valor Dafault seja a data em que o registro 
>> estiver
>> sendo inserido.
>> Já aproveitando o gancho, também queria saber como colocar o valor Hora 
>> por
>> Default também.
>>
>> Ex.
>>
>> Create Table teste)
>>   campo_data date default 'now',
>>   campo_hora time... default 'now'
>> )
>>
>> Existe isso ou terei que criar um trigger?
>>
>
>
> Do manual:
> SELECT CURRENT_TIMESTAMP;
> SELECT now();
> SELECT TIMESTAMP 'now';  -- incorrect for use with DEFAULT
> Tip: You do not want to use the third form when specifying a DEFAULT
> clause while creating a table. The system will convert now to a
> timestamp as soon as the constant is parsed, so that when the default
> value is needed, the time of the table creation would be used! The
> first two forms will not be evaluated until the default value is used,
> because they are function calls. Thus they will give the desired
> behavior of defaulting to the time of row insertion.
> http://www.postgresql.org/docs/current/interactive/functions-datetime.html
>
> Osvaldo
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 2 Dec 2010 05:58:59 -0800 (PST)
> From: Renato Ricci <renatoricc...@yahoo.com.br>
> Subject: [pgbr-geral] PostgreSQL em Cluster
> To: pgbr-geral@listas.postgresql.org.br
> Message-ID: <993061.11995...@web58605.mail.re3.yahoo.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Olá amigos do forum..
>
> Existe alguma maneira de fazer cluster com PostgreSQL? Tenho 2 CPUs e uma
> Storage. Existe alguma maneira de ter o Postgres nas 2 máquinas lendo o 
> mesmo
> banco localizado na storage? Nesse cenário eu teria usuários conectados em 
> ambas
> as máquinas dividindo assim o processamento e acessando as mesmas 
> informações.
>
> Obrigado,
> __________________________________
> Renato R. Ricci
> Antes de imprimir, pense em sua responsabilidade e compromisso com o Meio
> Ambiente. O Futuro está em Nossas Mãos!
>
>
>
>
> -------------- Próxima Parte ----------
> Um anexo em HTML foi limpo...
> URL: 
> http://listas.postgresql.org.br/pipermail/pgbr-geral/attachments/20101202/e9a4e7f7/attachment-0001.htm
>
> ------------------------------
>
> _______________________________________________
> pgbr-geral mailing list
> pgbr-geral@listas.postgresql.org.br
> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
>
>
> Fim da Digest pgbr-geral, volume 24, assunto 4
> **********************************************
> 
_______________________________________________
pgbr-geral mailing list
pgbr-geral@listas.postgresql.org.br
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a