-
Notifications
You must be signed in to change notification settings - Fork 128
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
Can make it work with amd64.exe or GO source #76
Comments
I solved my problem with a function from another forum. Basically you call a function within Postgres (last argument specifies the number of columns).
copy&paste into PgAdmin SQL Editor or Query Tool and run it to create the function :
I changed the delimiter for ";" in my case, don't forget to do it too if you need. Jefty |
Many thanks Jefty for posting that solution here, as I've been having a number of issues using pgfutter recently and have been seeking simple alternatives that do not require python/dbeaver/etc. I've taken the code and made a few additions so that the columns can be automatically calculated and the column names formatted as per pgfutter's lowercase with underscores standard (to maintain compatibility with existing work) and am posting it back here in case it can assist you or anyone else that has also been experiencing issues with pgfutter. On Windows this requires a copy of head.exe (from UnxUtils or a similar package) and updating the call to reflect your own path to the utility. On Linux, you should alter the line with the call to head and remove the path (and possibly the quotes "" around %s?).
The above code is also available from the following text file: |
Hello everyone,
I have the same problem as other people here, when I use pgfutter_windows_amd64.exe it doesn't work and I don't get an error message, i go to a new line on the prompt. I used a simple command like this:
pgfutter_windows_amd64.exe --db "MyBDD" --schema "public" --port "5432" --user "postgres" --table "STATE" --pw "test" csv STATE.csv
The CSV file is in the repertory.
I check the user and port on the parameter.
I renamed all the columns to exclude the SQL keyword.
I tried using --delimiter ";" like that :
pgfutter_windows_amd64.exe --db "MyBDD" --schema "public" --port "5432" --user "postgres" --table "STATE" --pw "test" csv --delimiter ";" STATUS.csv
Same problem.
I then tried following #67 and worked on the source package to add the change to the pgfutter.go file with Notepad.
Then installed GO for Windows and Git.
When I used "go version" at the prompt, it works.
I then tried this on the file repertory :
pgfutter.go --db "MyBDD" --schema "public" --port "5432" --user "postgres" --table "STATE" --pw "test" csv --delimiter ";" STATUS.csv
and
pgfutter --db "MyBDD" --schema "public" --port "5432" --user "postgres" --table "STATE" --pw "test" csv --delimiter ";" STATUS.csv
Do not work.
I'm not really sure what I'm doing here with the GO file
Can someone help my to make it work?
Thanks.
Jefty
The text was updated successfully, but these errors were encountered: