Answer the question
In order to leave comments, you need to log in
py-postgres postgresql10 error?
I'm new to python It's
worth ubuntu 18.04 postgresql 10 I'm
writing an API to connect to the database
, it swears like this:
Answer the question
In order to leave comments, you need to log in
Error in the library being used. So you can't query the database version.
It breaks exactly at 10, obviously due to a change in the numbering policy, up to 10 it was xyz, where xy is the major version, starting from ten releases are numbered xy, where the major version is only the first digit. Stupid code trying to parse the number finds something other than what it expects.
Probably, a year and a half after the release of postgresql 10.0, the library has already been fixed. I would like to hope that the use of the current_setting('server_version_num') specially designed for this purpose, and not again a crutch around the version() that is not intended for that
Dig accordingly in the direction of updating the version of the library. If not, roll back to postgresql 9.6.
"The file system is read-only" is no accident. Most likely, the operating system detected errors on the FS and switched it to read-only mode. And there are no access rights. Maybe you didn't unmount the flash drive/hard drive last time before pulling it out. Or the device itself is junk. Details can be seen in /var/log/syslog
Accordingly, the solution is to always unmount correctly.
There was a similar problem. The fact is that Ubuntu is not very friendly with ntfs, if your flash drives are with such a fs, then even for fun, try FAT32
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question