PostgresQL output with a horizontal bar - sql

I am novice in psql. I have a problem with an output in psql shell. Amount of columns in my table wraps, and makes the whole table unreadable. I am looking for a "\x" alternative, because it makes a data tough to read for me. I have been trying everything I found out in Internet since yesterday without a progress.
I am an Windows user, I am familiar with this post also: Alternate output format for psql
The output looks like this:
I am wondering If there is an option to add horizontal bar to smoothly scroll the output.

Adding a scroll bar would be up to your terminal/console emulator, not up to PostgreSQL nor psql.
But if you use less for our pager, psql will automatically send the over-width output to less, which will then let you scroll left and right with the cursor keys. If you are scrolled all the way to the left, it will show the output as wrapped, but if you scroll to right at all it will unwrap it and show just the slice that falls within the window. It will normally scroll around in chunks of ~20 columns per keypress by default, but you can change that by hitting a number first before using the arrow keys. I just set PAGER=less in my .bashrc file, so that all programs know that my preferred pager is less. But you can also set PSQL_PAGER if you just want to set it for this one program, or you can set it on the command line for just a specific execution.

Related

Looker cannot adjust spacing on visual

I have been unable to find a way to lock in the spacing of columns in a visualization in Looker.
Every time either in dev mode or not or when editing the dashboard if I adjust the size of the columns they will not stay that way when saving the dashboard. For example this is what it looks like where the name section is spaced way out.
Is there a way to lock in the spacing of column within looker visuals?
I am getting this:
I want this:
Mike, you can also hard code the width for each column in the Edit section of the table chart:
Of coarse after posting a question on this I finally stumbled onto the option to freeze columns in the edit window. So instead of deleting my post I will just put my findings here so that if someone happens to have this problem they can find the answer here.
In the visualization edit window you can select the 3 vertical dots next to a column and freeze the column size. This works for all columns individually.
Hi there this is a known issue in Looker dashboards according to Looker support. The way to fix this is to adjust the fields width manually with your cursor in the Look before the visualization gets into Looker. Not ideal but it works.

How to hide the separate error log window in DBeaver?

A few weeks ago I detached the error log within the editor as a separate window; I was just seeing what was going to happen.
Now I can't put it back and I get two separate error log windows. One that is the original detached window and another that's still within the editor. I can't find any option to reattach it to the single Dbeaver window/editor in attempt to revert it to what it was before.
The yellow bar in the picture is the window I'm referring to. It's just a little annoying for a new window to be produced every time I get an error. I've tried to look for toggles in the preferences menu but haven't seen anything that stands out to be the problem. Nor can I just drag and drop back it into the editor.
Looks like after an update you can't merge it to any of the bottom windows , but can keep it as a tabbed window like this.

RedisInsight: Configuring graph visual display/results?

Is there a way to configure the display of RedisGraph results in RedisInsight.
May be an option to edit the CSS directly is good too.
The reasons :
The color of the nodes is awful
The font-size is too small
nice to be able to change color of nodes with property value X
it will be good to be able to specify the default-property that will be displayed instead of node ID. Also on mouse-over too. (i know i can changed but it becomes tedious to do it for every result).
same for relationships
ERR: If some of the nodes in the result does not have the property you want to switch to (for display), then the 'switch' does not work i.e. all nodes still display IDs
for my screen it just happen that the +/- zoom is hidden i.e. I have to scroll back and forth. It will be good if we can use the keyboard to zoomin/zoomout
once you select something you have to click outside of the graph area to be able to scroll, supper annoying
command history on the query editor would be nice
ability to pin the result-area so that the new result does not spawn yet another area .. it is nice to have the option for multiple result-areas, but the normal interaction is refining queries rather than writing new query every time. (tabs would have been better)
if possible select-area to zoom will be nice. (by holding mouse down and selecting area )
!! double-click outside a node, may Zoom, instead of doing nothing
!! local zoom/search : typing in search-bar (there is space for it after +/-) to zoomin on the node with that have property and/or value f.e. val:3 , word:test , ...
Posting this here because couldn't find a place to give feedback on RedisInsight !

In GNU screen, is it possible to programmatically read the status message?

I am considering writing a graphical tool that will show you what gnu-screen sessions you have and what windows are available in them. You would then be able to, for example, click on the window title and it would take you there. I do not want to modify gnu-screen in any way so that my tool can work with existing installations on other machines and so on.
I can get ordinary output from programs running inside screen out of the screen session by using a log-file, or by copying the last few lines into the exchange-buffer. What I really need in order to make a nice user interface though is the contents of the status line (the line that temporarily appears at the bottom of the window). For example, to get the list of windows in a session I can send the windowlist command, but the result is never part of the output. Does anyone know if there is a way to make screen put its messages into the log, into a paste-buffer, into the current window, or anything similar where I can grab it from another program?

LINQPad: Anyway to make the Dump() results be initially collapsed?

Couldn't find it anywhere (google or stackoverflow).
Is there a way to force Dump()'s output to be automatically collapsed?
Update:
Some more info, to bring more focus to the question.
As mentioned below Collapsing can be done after the output as rendered via keyboard shortcust (Alt+1, Alt+2, Alt+3)
And can rendering depth can be determined by passing an int depth param, but that does not allow to expand the results.
Is there some way to change the CSS formatting? I'm not that fluent in CSS, so this might be the solution.
Why I need this:
What I want is to make the output 'cleaner', and dive in when something of interest show's up.
I'm running a query repeatedly, and don't need all of the output all the time, but still using my human abilities to detect change, instead of coding the detection.
Update: November 2013
As Joe (the author himself!) mentions in the comments, LINQPad no longer has the limitation described.
It is now possible to state 0 and collapse the information after it's rendered.
No, although you can call Dump with a number to force it to display to that nesting depth:
.Dump(0)
You can also use the formatting shortcuts (Alt+1, Alt+2, Alt+3) to collapse the whole display to one, two or three levels.
Another option is to dump to grids. Call Dump(true) or use the toolbar button. Grids show only one level and subsequent levels are shown upon demand with hyperlinks.