Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Save content to file" command creates zero-byte files #56

Closed
wonderfool opened this issue Mar 7, 2018 · 2 comments
Closed

"Save content to file" command creates zero-byte files #56

wonderfool opened this issue Mar 7, 2018 · 2 comments

Comments

@wonderfool
Copy link

PSPG works beautifully for me except for the "Save content to file" command. After entering a filename, it returns the message "Cannot write to [filename]" and creates a zero-byte file at the specified path.

Actually, this has been the case for me for all builds since 2017/09 (I just git-pulled and recompiled it again today).

I'm invoking PSPG in my .psqlrc like so:

\setenv PAGER 'pspg -s 11 -X --no-mouse --no-sound'

...and running it on OSX 10.12.16 with psql 9.4.0.

Any ideas? Thanks!

@okbob
Copy link
Owner

okbob commented Mar 7, 2018

I fixed small bug there. Check last commit. But probably it will not be this issue. Maybe some security issue. I enhanced error message about some info, if it is available. What is a output?

@wonderfool
Copy link
Author

Wow. That was fast! Saving output to file works now. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants