News for hackers. Stuff that matters.
Re:PostgreSQL 10.2 Released by jlmorton on Friday February 09, 2018 @02:30PM (#16343139)
> Please note that PostgreSQL changed its versioning scheme with the release of version 10.0, so updating to version 10.2 from 10.0 or 10.1 is considered a minor update.

While this looks like an important update, note that it's not a new feature release.

Re:PostgreSQL 10.2 Released by stingraycharles on Friday February 09, 2018 @03:46PM (#16343682)
Hmm I'm a bit confused. Why did they decide to do this ?
Re:PostgreSQL 10.2 Released by grzm on Friday February 09, 2018 @03:57PM (#16343765)
Largely because the previous version numbering was sometimes confusing for the opposite reason: Postgres "major" releases were sometimes interpreted as point releases. For example, 9.1 to 9.2 was major version jump. While that was understood by those who already understood the versioning scheme, it was often confusing to those outside the community.

Josh Berkus discusses this here:

http://www.databasesoup.com/2016/05/changing-postgresql-vers...

Re:PostgreSQL 10.2 Released by piinbinary on Friday February 09, 2018 @02:42PM (#16343235)
> Spinlock fixes and support for Motorola 68K and 88K architectures

I'm astounded that they support those architectures

Re:PostgreSQL 10.2 Released by anarazel on Friday February 09, 2018 @02:52PM (#16343317)
> I'm astounded that they support those architectures

I work on PG, and I'm regularly astounded too...

As long as the compilers are new enough, the burden isn't too high though. Previously it prevented us from using atomics for some concurrency optimized things, but now we've an atomics implementation that, at compile time, falls back to a spinlock backed atomics implementation. Slightly complicated by the fact that we don't even have a hard dep on a spinlock implementation, falling back to semaphores :)

Ah. Fun.

But seriously, the thing that hurts more is that we only require a C89 compiler :/

Re:PostgreSQL 10.2 Released by pritambaral on Friday February 09, 2018 @03:04PM (#16343404)
> But seriously, the thing that hurts more is that we only require a C89 compiler :/

Indeed. For a glimpse for the non-PG-hackers (like me), there's an ongoing attempt discussed in the PG-hackers mailing list to use stdbool.h.

Re:PostgreSQL 10.2 Released by wahern on Friday February 09, 2018 @04:19PM (#16343909)
That can be tricky because you can't emulate the semantics of the C99 bool type.

In C99

  (bool)256 == 1
but on systems which emulate bool with, e.g., an 8-bit unsigned char then

  (bool)256 == 0
Re:PostgreSQL 10.2 Released by petereisentraut on Friday February 09, 2018 @05:26PM (#16344403)
Another problem is that the bool provided by stdbool.h is 4 bytes on some platforms, which breaks PostgreSQL all over the place.
Re:PostgreSQL 10.2 Released by collyw on Friday February 09, 2018 @04:11PM (#16343864)
What uses those these days?
Re:PostgreSQL 10.2 Released by mberger on Friday February 09, 2018 @02:53PM (#16343319)
From the release notes: >Fix sample INSTR() functions used to help transition from Oracle(r) PL/SQL to PostgreSQL PL/pgSQL to correctly match Oracle functional behavior

TIL PL/pgSQL exists so I googled it. In the page for porting from Oracle PL/SQL:

>Instead of packages, use schemas to organize your functions into groups.

Does anyone know if there are plans to introduce packages in Postgres? Doesn't putting function in different schemas mean you have to grant select/update permissions to the schemas that talk to other schemas?

*edit:formatting

Re:PostgreSQL 10.2 Released by pritambaral on Friday February 09, 2018 @03:00PM (#16343371)
> Doesn't putting function in different schemas mean you have to grant select/update permissions to the schemas that talk to other schemas?

In Pg, schemas don't talk to schemas. When a function is run, it runs with the privilege level of either the user that called it, or the user that defined it.

Re:PostgreSQL 10.2 Released by nileshtrivedi on Friday February 09, 2018 @03:03PM (#16343394)
I'd like to see updated versions of PL/v8 ship. The situation with building v8 is so bad ( https://github.com/plv8/plv8/issues/251#issuecomment-3645410... ), that almost the entire cloud infrastructure (AWS, Heroku, Docker) is stuck with an ancient version of PL/v8.
Re:PostgreSQL 10.2 Released by chillax2 on Friday February 09, 2018 @09:06PM (#16345426)
The solution is to fire whoever convinced you that javascript belongs in your database.
Re:PostgreSQL 10.2 Released by nileshtrivedi on Sunday February 11, 2018 @10:37AM (#16353089)
Pl/v8 is at least safer than PL/Python due to being properly sandboxed ;-)
Re:PostgreSQL 10.2 Released by bdcravens on Friday February 09, 2018 @03:46PM (#16343678)
AWS only goes up to 9.6.5 - I don't know that PL/v8 is the reason for that.
Re:PostgreSQL 10.2 Released by chinhodado on Friday February 09, 2018 @04:40PM (#16344069)
It's a shame that Postgres 10 still ships with the abomination that is pgAdmin 4. You don't have a lot of other choices either (the pgAdmin 3 LTS version still throws error left and right when connection to a postgres 10 DB)
Re:PostgreSQL 10.2 Released by grzm on Friday February 09, 2018 @04:51PM (#16344150)
This is package specific. pgAdmin is a separate project. There are other tools out there (there is a recent Show HN thread for a macOS client and the comments include other tools), though to be honest I use psql almost exclusively, so I'm not one to ask for recommendations.
Re:PostgreSQL 10.2 Released by dvdgsng on Saturday February 10, 2018 @04:23PM (#16349680)
BigSQL offers a LTS version of pgAdmin 3 that supports PostgreSQL 10: https://www.openscg.com/bigsql/pgadmin3/

DBeaver is another great alternative.

Re:PostgreSQL 10.2 Released by petereisentraut on Friday February 09, 2018 @05:27PM (#16344411)
Try OmniDB perhaps?

(disclaimer: my employer (but open source))

Re:PostgreSQL 10.2 Released by tpkj on Friday February 09, 2018 @07:52PM (#16345156)
Agreed. Tried pgAdmin 4, and it's not a happy user experience. Reverting back to pgAdmin 3 gives errors, depending on what you attempt to do. I have Navicat, and some features are good, yet some are frustrating. Postgres needs a "gold standard" ux tool. Maybe there is one, but I have not used it before.
Re:PostgreSQL 10.2 Released by petagonoral on Friday February 09, 2018 @06:38PM (#16344794)
dbeaver is free & can connect to multiple db types. (have used it with postgres as i agree that pgAdmin 4 is v. bad interface)