Re: \describe*

2018-01-29 Thread Ryan Murphy
> > >What I propose is in fact a server command, >which at least three of > >the other popular RDBMSs already have. > Well to actually implement it, it would probably be a client command, because that's what \d* are. We would most likely want them implemented the same, to avoid needless complexity

Best way to select a random row from a derived table

2018-01-27 Thread Ryan Murphy
Hello hackers and postgressers, I am aware of 2 ways to select a random row from a table: 1) select * from table_name order by random() limit 1; -- terribly inefficient 2) select * from table_name tablesample system_rows(1) limit 1; -- only works on tables, not views or s

Re: Is it valid to have logical replication between 2 databases on the same postgres server?

2018-01-24 Thread Ryan Murphy
Thanks all! I'll try creating the replication slot manually.

Is it valid to have logical replication between 2 databases on the same postgres server?

2018-01-24 Thread Ryan Murphy
Hello hackers, I'm experimenting with Logical Replication. (https://www.postgresql.org/docs/10/static/logical-replication.html) What I'm trying to do may be impossible l but just wanted to ask here. I'm trying to do logical replication from one database to another within the same server. Ultimate

Re: Add default role 'pg_access_server_files'

2018-01-19 Thread Ryan Murphy
Ok great. Thanks Michael and Stephen for the explanations.

Re: Add default role 'pg_access_server_files'

2018-01-18 Thread Ryan Murphy
Just circling back on this. I did have a question that came up about the behavior of the server as it is without the patch. I logged into psql with my superuser "postgres": postgres=# select pg_read_file('/Users/postgres/temp'); ERROR: absolute path not allowed I had not tried this be

Re: Add default role 'pg_access_server_files'

2018-01-06 Thread Ryan Murphy
The following review has been posted through the commitfest application: make installcheck-world: tested, passed Implements feature: tested, passed Spec compliant: not tested Documentation:tested, passed I ran make installcheck-world and all tests passed except one tha

Re: Add default role 'pg_access_server_files'

2018-01-06 Thread Ryan Murphy
(Duplicated to make sure it's in the commitfest Thread, didn't seem to get in there when I replied to the email) Oops! I made a mistake, which clearly showed up in my last email: I forgot to psql back in as "tester". Now I get the right behavior: $ psql postgres tester postgres=> sele

Re: Add default role 'pg_access_server_files'

2018-01-06 Thread Ryan Murphy
Oops! I made a mistake, which clearly showed up in my last email: I forgot to psql back in as "tester". Now I get the right behavior: $ psql postgres tester psql (9.4.5, server 11devel) Type "help" for help. postgres=> select pg_read_file('/Users/postgres/temp'); ERROR: absolute path not allow

Re: Add default role 'pg_access_server_files'

2018-01-06 Thread Ryan Murphy
Hi Stephen, I have another question then based on what you said earlier today, and some testing I did using your patch. TLDR: I created a role "tester" and was (as expected) not able to perform pg_read_file() on files outside the data directory. But then I granted EXECUTE on that function for t

Re: Add default role 'pg_access_server_files'

2018-01-06 Thread Ryan Murphy
Stephen, so far I've read thru your patch and familiarized myself with some of the auth functionality in pg_authid.h and src/backend/utils/adt/acl.c The only question I have so far about your patch is the last several hunks of the diff, which remove superuser checks without adding anything immed

Re: Challenges preventing us moving to 64 bit transaction id (XID)?

2018-01-06 Thread Ryan Murphy
Thanks for this contribution! I think it's a hard but important problem to upgrade these xids. Unfortunately, I've confirmed that this patch 0001-64bit-guc-relopt-3.patch doesn't apply correctly on my computer. Here's what I did: I did a "git pull" to the current HEAD, which is 6271fceb8a4f07d

Re: Challenges preventing us moving to 64 bit transaction id (XID)?

2018-01-06 Thread Ryan Murphy
Since the Patch Tester (http://commitfest.cputube.org/) says this Patch will not apply correctly, I am tempted to change the status to Waiting on Author. However, I'm new to the CommitFest process, so I'm leaving the status as-is for now and asking Stephen Frost whether he agrees. I haven't tri

Re: January CommitFest is underway!

2018-01-05 Thread Ryan Murphy
> BTW, for those who aren't already aware of it, I'd like to point out > this very handy resource: > > http://commitfest.cputube.org > > Wow, that makes it way easier to see what's going on! Thanks Tom.

Re: CFM for January commitfest?

2018-01-03 Thread Ryan Murphy
> > Yes, I have interest to help. I do not have the experience of how to do > the > > whole, but I believe that if I help you (you as CFM) in the future I can > > assume this activity when necessary. Hi Stephen. Thanks for being the CFM! I'm also interested in helping. Last commitfest I revie

Re: CFM for January commitfest?

2018-01-02 Thread Ryan Murphy
> Now that the January fest has nominally started, we need somebody > to act as CF manager. Any volunteers? > > What are the responsibilities? How many hours per week are typically given for this role? Best, Ryan

Re: proposal: alternative psql commands quit and exit

2017-12-08 Thread Ryan Murphy
> > ​There isn't going to be that much appetite for this just so that people > can use PostgreSQL without reading our documentation: or the output of > typing "help" at the psql prompt that says "type \q to quit".​ > > Agree with this. The whole reason people here are reluctant to add "quit" in th

Re: proposal: alternative psql commands quit and exit

2017-12-08 Thread Ryan Murphy
I am +1 on doing this too, unless we can imagine it clashing with any SQL queries or breaking scripts (which I can't). Helping people migrate to postgres w minimal frustration is important enough imho to be worth breaking this \ rule unless we can forsee real actual compatibility problems. We alr

Re: PGLister: how to subscribe to digests instead of getting every email?

2017-11-14 Thread Ryan Murphy
Ok Stephen, thanks for the clarification. On Tue, Nov 14, 2017 at 2:27 PM, Stephen Frost wrote: > Greetings, > > * Ryan Murphy (ryanfmur...@gmail.com) wrote: > > Sorry, this is off topic, but since we've switched the mailing list to > > PGLister my inbox is getting

PGLister: how to subscribe to digests instead of getting every email?

2017-11-14 Thread Ryan Murphy
Sorry, this is off topic, but since we've switched the mailing list to PGLister my inbox is getting every single message as a separate email. I used to get a digest once a day. Is there a way for me to change my subscription settings to something like that? Best, Ryan