Comments (7)
@vitabaks Try to build pgcenter from dev branch and reproduce the bug
from pgcenter.
Try to build pgcenter from dev branch
@lesovsky Maybe I do not have enough experience for build on go...
root@drm-pgnode02:~# cd /tmp/pgcenter-dev/
root@drm-pgnode02:/tmp/pgcenter-dev# make
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
go mod download
go: finding github.com/jmoiron/sqlx v1.2.0
go: finding github.com/jroimartin/gocui v0.4.0
go: finding github.com/lib/pq v1.0.0
go: finding github.com/inconshreveable/mousetrap v1.0.0
go: finding github.com/spf13/pflag v1.0.2
go: finding github.com/mattn/go-runewidth v0.0.3
go: finding github.com/spf13/cobra v0.0.3
go: finding github.com/pkg/errors v0.8.0
^CMakefile:21: recipe for target 'pgcenter' failed
make: *** [pgcenter] Interrupt
root@drm-pgnode02:/tmp/pgcenter-dev# git init
Initialized empty Git repository in /tmp/pgcenter-dev/.git/
root@drm-pgnode02:/tmp/pgcenter-dev#
root@drm-pgnode02:/tmp/pgcenter-dev# make
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
go mod download
go: finding github.com/jroimartin/gocui v0.4.0
go: finding github.com/spf13/pflag v1.0.2
go: finding github.com/lib/pq v1.0.0
go: finding github.com/mattn/go-runewidth v0.0.3
go: finding github.com/jehiah/go-strftime v0.0.0-20171201141054-1d33003b3869
go: finding github.com/inconshreveable/mousetrap v1.0.0
go: finding github.com/spf13/cobra v0.0.3
go: finding github.com/nsf/termbox-go v0.0.0-20180819125858-b66b20ab708e
^CMakefile:21: recipe for target 'pgcenter' failed
make: *** [pgcenter] Interrupt
go version go1.11.5 linux/amd64
from pgcenter.
go build pgcenter.go
its worked
root@drm-pgnode02:/tmp/pgcenter-dev# ./pgcenter top -h /var/run/postgresql/ -U postgres -d postgres
but...
2019-02-11 16:58:10 MSK [12036-1] [local] postgres@postgres ERROR: unrecognized configuration parameter "track_commit_timestamp"
2019-02-11 16:58:10 MSK [12036-2] [local] postgres@postgres STATEMENT: SELECT current_setting($1)
2019-02-11 16:58:10 MSK [12036-3] [local] postgres@postgres ERROR: function pg_current_logfile() does not exist at character 8
2019-02-11 16:58:10 MSK [12036-4] [local] postgres@postgres HINT: No function matches the given name and argument types. You might need to add explicit type casts.
2019-02-11 16:58:10 MSK [12036-5] [local] postgres@postgres STATEMENT: SELECT pg_current_logfile();
PostgreSQL ver: 9.4.18
from pgcenter.
Last errors are ok, code will be rewritten to be more careful and don't cause errors.
First error, related to track_commit_timestamp
, it's just checking is this option enabled or not. But track_commit_timestamp
is quite new and in old versions of Postgres might cause errors.
Second error is also related to new function pg_current_logfile()
, if it fails it pgcenter uses more generic way for finding logfile.
I have these points in TODO, so they will be refactored in the future versions.
from pgcenter.
Thank you!
from pgcenter.
I have found some mess in my branches, I going to tidy up them and then merge the bugfix into the master master. So you can find new updated packages tomorrow (or even this evening)
from pgcenter.
fixed in v0.6.1
from pgcenter.
Related Issues (20)
- SIGQUIT when Duoble time \ is pressed. Or some :) (can't reproduce) HOT 2
- version 9 dpkg install fails on ubuntu HOT 1
- pgcenter - Perl hash contains nonexistent column HOT 2
- Why 0.8.0 & 0.9.1 shows /32 CIDR network mask for connected clients? HOT 2
- run stuck with ERROR: pg_stat_statements must be loaded via shared_preload_libraries (SQLSTATE 55000) | only extension created HOT 4
- way to specify host, user and db via environment variables HOT 1
- reset postgresql statistics counters failed HOT 3
- Unable to upgrade from 0.4 to 0.9 at Centos8 HOT 1
- Getting only one database statistics using x command HOT 1
- ERROR "relation does not exist" after swich to context s (pg_tables_size) HOT 6
- appname field is trimmed to 16 chars HOT 1
- CPU utilization per postgresql connection
- ERROR: pg_stat_statements must be loaded via shared_preload_libraries HOT 1
- pgcenter installation also upgrade postgresql version HOT 2
- Can not get some report from tar file.
- Add feature to include pidstat postgres process
- Update pgcenter RPM to latest version at PostgreSQL common repository
- pcCenter report -D not working HOT 3
- pgcenter v0.8.0 "total_exec_time" does not exist HOT 2
- panic: runtime error: slice bounds out of range [:-1] HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgcenter.