Postico icon indicating copy to clipboard operation
Postico copied to clipboard

small usability issue: Result 1 to Query Status

Open wellsoliver opened this issue 10 years ago • 10 comments

I often check the query status view to see notifications, etc, and find it a little frustrating to click the Result 1 drop-down and select it. Would it be possible to add a button that allows a quick toggle?

(i know, tiny, minor issue)

wellsoliver avatar Nov 07 '15 16:11 wellsoliver

+1 this is especially true when developing functions

qwesda avatar Nov 09 '15 16:11 qwesda

I'd better view a tabview here, where tabs are "query status", "results", and then maybe others?

pgAdmin has an output pane like this:

schermata 2015-11-27 alle 11 46 44

trapias avatar Nov 27 '15 10:11 trapias

Tabs are indeed a good idea here, considering that most of the time there will be few results. If you execute a query with lots of results that will fail, though. But I can always display some kind of overflow tab with a popup in that case...

jakob avatar Nov 27 '15 11:11 jakob

why would it fail? the table with records should just be put within a tab, like in pgadmin.

Do you mean it will fail on UI?

trapias avatar Nov 27 '15 11:11 trapias

I was talking about the case when you have multiple resultsets. If you execute multiple queries at once, you will get multiple tables. Using the popup menu you can switch between a lot of them, but using tabs you could only switch between 5 or so, since you won't fit more than 5 tabs or so on the screen.

This is probably not a common case, but I try to make sure Postico works whatever you do. If you execute a query that returns 100 results, Postico should handle it. As I said, using tabs, I could probably use an overflow tab to handle this case.

jakob avatar Nov 27 '15 11:11 jakob

Ah got it, right!

Worst case: you could keep a single tab for results, and append all result sets as separate tables within it, would this work? Not optimal to read results, yet.

Else an "overflow" tab (I imagine something like a "more tabs" tab, with buttons to move left and right to see more tabs) would be perfect, and I believe usable in most of cases.

Nothing against current switch indeed, but feel a tabview would allow me to move from "results" to "messages" more quickly. just this. What about a keyboard shortcut to select "query status" or "result n", like first 5 results, keeping current switch?

trapias avatar Nov 27 '15 12:11 trapias

You are right about tabs being quicker. I think the tab bar is the way to go; but I'm working on some other stuff right now, so this will have to wait a little. Also, good point about the keyboard shortcuts, those would definitely be helpful as well.

jakob avatar Nov 27 '15 12:11 jakob

Waiting for next release, thanks @jakob :smile:

trapias avatar Nov 27 '15 13:11 trapias

I'm currently fighting the interface a lot with this one.

I have some helper functions to manipulate the db and they raise some notices, which I'm interressted in. The return type is void, but since 1 row with 1 column is returned postico switches to the result viewer.

May be you could check for this case and disable the switching if the result set is 1 row with 1 column and pg_typeof("column_1") = 'void' (not sure how/if this is exposed in libpq though).

qwesda avatar Feb 28 '17 17:02 qwesda

+1

wildfluss avatar May 13 '25 12:05 wildfluss