Re: adding more space to the existing server

2019-08-02 Thread Adrian Klaver
On 8/2/19 12:45 PM, Julie Nishimura wrote: Thanks for your replies. 1) We use streaming replication, and due to hardware limitation, we cannot add more drives to the existing host. That is why we thought by breaking the existing streaming replication (from a->b), instead of currently identica

Re: Altering multiple column types

2019-08-02 Thread Bharanee Rathna
Thanks Tom!

Re: SCRAM-SHA-256, is it possible to retrieve enough information from PG server (pg_authid etc) to perform authentication as a client

2019-08-02 Thread Andrew Gierth
> "Vladimir" == Vladimir Soldatov writes: Vladimir> Hi guys, Vladimir> I am new to PostgreSQL, so sorry for maybe stupid question. I Vladimir> am working on some application implementing Frontend/Backend Vladimir> PG protocol and one of the goals - having only "admin" users Vladimir> cr

Re: adding more space to the existing server

2019-08-02 Thread Julie Nishimura
Thanks for your replies. 1) We use streaming replication, and due to hardware limitation, we cannot add more drives to the existing host. That is why we thought by breaking the existing streaming replication (from a->b), instead of currently identical standby (b), we can introduce twice larger

Re: Altering multiple column types

2019-08-02 Thread Tom Lane
Bharanee Rathna writes: > I'm encountering an issue altering multiple column types in a single ALTER > TABLE Yeah, this is a regression in the May batch of minor releases :-(. It's fixed for next week's releases. https://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=f946a4091

Re: Altering multiple column types

2019-08-02 Thread Bharanee Rathna
Thanks for confirming, so I know I'm not going crazy :) FWIW, it works on 10.3 to 10.8 (I think) and looks like a regression. psql (10.3 (Debian 10.3-2)) Type "help" for help. test=# create table users(id serial primary key, name varchar(255), email varchar(255), age int); CREATE TABLE Time: 26.

SCRAM-SHA-256, is it possible to retrieve enough information from PG server (pg_authid etc) to perform authentication as a client

2019-08-02 Thread Vladimir Soldatov
Hi guys, I am new to PostgreSQL, so sorry for maybe stupid question. I am working on some application implementing Frontend/Backend PG protocol and one of the goals - having only "admin" users credentials (like postgres user) be able to retrieve enough information from PG server (for example, from

PGSQL "macro" or "inplace subfunction"?

2019-08-02 Thread Durumdara
Dear Members! Many times I need to type same expressions in SQL queries. select [exprs] from anytable where [exprs] > 0 order by [exprs] Sometimes I solve this with subquery, or "WITH" query, because it is easier to define value once, and use it more times... select * from ( select [exprs] as e

Re: Altering multiple column types

2019-08-02 Thread Luca Ferrari
On Fri, Aug 2, 2019 at 10:06 AM Bharanee Rathna wrote: > > Hi Luca, > > testing this using docker images. I can replicate it with 10.9-alpine > > bash-5.0# psql -h127.0.0.1 -Upostgres test > psql (10.9) > Type "help" for help. > > test=# \d users > Table "public

Re: PGAdmin4.11.1 on Ubuntu 18.04

2019-08-02 Thread Tony Shelver
> >> What repo are you getting the packages from? > > Repo looks like PostgreSQL apt repository https://apt.postgresql.org. .../bionic-pgdg.main > -- > Adrian Klaver > adrian.kla...@aklaver.com >

Re: Altering multiple column types

2019-08-02 Thread Bharanee Rathna
Hi Luca, testing this using docker images. I can replicate it with 10.9-alpine bash-5.0# psql -h127.0.0.1 -Upostgres test psql (10.9) Type "help" for help. test=# \d users Table "public.users" Column | Type | Collation | Nullable | Default

Re: Altering multiple column types

2019-08-02 Thread Luca Ferrari
On Fri, Aug 2, 2019 at 9:39 AM Bharanee Rathna wrote: > > Hi Luca, > > I've tried it with a different client and Postgres 10.9, no luck > > psql (10.3, server 10.9) I've fired up a 12beta2 and it works, either with psql 12 or psql 11.4 on linux. What if you run the statements within another clien