Live data from Hacker News

PostgreSQL 10 Beta 1 Released

postgresql.org

81–90 of 172 posts

Re: PostgreSQL 10 Beta 1 Released

#81

If you're looking for a quick way to try PostgreSQL 10 on a Macbook, we made a special build of Postgres.app that includes PostgreSQL 10beta1. You can download it from Github: https://github.com/PostgresApp/PostgresApp/releases

Or if you use Homebrew you might like: brew install --devel petere/postgresql/postgresql@10

Re: PostgreSQL 10 Beta 1 Released

#82
post #6

I wished they would implement more from SQL:2011. I have a lot of applications that would benefit from system versioned tables. This is a good sum up of useful modern SQL features: https://www.slideshare.net/MarkusWinand/modern-sql

I was expecting that presentation to be stuff you were missing, but the presentation is saying that essentially every feature they describe is implemented in PostgreSQL. Of the SQL:2011 ones, only one wasn't (temporal tables), and even the SQL:2016 features had partial support (with the summary slide at the end of other features they didn't do in detail having stuff that looks familiar in a PostgreSQL context). Do you have a reference of features not in PostgreSQL you are hoping to use?

Re: PostgreSQL 10 Beta 1 Released

#83
post #35

Will having logical replication make doing a DB version upgrade in production easier? We're using Postgres 9.4 on RDS right now, and there doesn't seem to be an upgrade path that doesn't involve some downtime.

I guess I remember 9.3 -> 9.4 on RDS sucked big time for us (no migration option whatsoever except pg_dump/pg_restore), but since 9.4 they had it pretty much nailed. Update worked flawlessly during the small failover maintenance window you have every now and then anyway. (You do run a HA setup, right?)

YMMV of course, better have your fingers crossed. If you don't trust it, do it the hard way: Switch to write-only mode (easiest: remove write rights for all DB users), notify your users, make a snapshot with pg_dump, restore to a fresh new DB copy and switch your services over. Worked for us, different story if you can't take any write downtime of course.

Re: PostgreSQL 10 Beta 1 Released

#84
post #82
post #6

I wished they would implement more from SQL:2011. I have a lot of applications that would benefit from system versioned tables. This is a good sum up of useful modern SQL features: https://www.slideshare.net/MarkusWinand/modern-sql

I was expecting that presentation to be stuff you were missing, but the presentation is saying that essentially every feature they describe is implemented in PostgreSQL. Of the SQL:2011 ones, only one wasn't (temporal tables), and even the SQL:2016 features had partial support (with the summary slide at the end of other features they didn't do in detail having stuff that looks familiar in a PostgreSQL context). Do yo…

I really would like to use Temporal Tables (slides 137 and following) to say like 'give me the record of last week'.

I can of course do that already manually, but it is tedious and I hope it will be faster if implemented directly.

Re: PostgreSQL 10 Beta 1 Released

#85

Earlier quoted context omitted.

ICU collations are prepopulated; see " rel="nofollow">https://www.postgresql.org/docs/devel/static/collation.html#... . Also, ICU collations are case sensitive, just like libc locales.

s/insensitive/sensitive/?

fixed, thanks

Re: PostgreSQL 10 Beta 1 Released

#86
post #40
post #6

I wished they would implement more from SQL:2011. I have a lot of applications that would benefit from system versioned tables. This is a good sum up of useful modern SQL features: https://www.slideshare.net/MarkusWinand/modern-sql

Get involved in the mailing list and start discussion on these features and how they would help you.

I fear I cannot contribute a lot in my extremely limited time. Is there a 'getting started' guide somewhere?

Re: PostgreSQL 10 Beta 1 Released

#87
post #6

I wished they would implement more from SQL:2011. I have a lot of applications that would benefit from system versioned tables. This is a good sum up of useful modern SQL features: https://www.slideshare.net/MarkusWinand/modern-sql

this slide deck is pure gold, just what i needed. thanks!

Re: PostgreSQL 10 Beta 1 Released

#88
post #12

Earlier quoted context omitted.

Every time I see a job post mentioning mysql I realize they just haven't discovered postgres, or they have some really gross problem. :/

Or they want to allow for case-insensitivity of some data, like for example email addresses on login forms. As much as postgres is overall better than MySQL in so many ways, it's still ridiculously difficult to set things up such that SELECT id FROM users WHERE email='foo@example.com' returns the same result as SELECT id FROM users WHERE email='Foo@example.com'

That's a bad practice. Did you know: email addresses are case-sensitive on the left-hand-side.

It's discouraged by RFC5321 whilst also being defined by it.

Re: PostgreSQL 10 Beta 1 Released

#89
post #43

Earlier quoted context omitted.

At my previous company we made heavy use of its lossy compression feature.

You would get compression with Postgres running on ZFS.

Database plus Copy-On-Write file systems sound like a bad idea. I am imagining a modest 100gb database being re-written for every change.

I am sure there is some way to work around this, but wouldn't this be the default behavior with a typical database and typical COW file system?

Re: PostgreSQL 10 Beta 1 Released

#90

The biggest news for me is ICU support for collations (text sorting). Previous versions of PostgreSQL relied only on strcoll, which is horribly broken on BSD and macOS. On platforms where it wasn't completely broken, it had the potential for subtle data corruption bugs (eg. an update to glibc might change sort order, causing indexes to become corrupt). Now, you can optionally use ICU for collations, which gives you r…

ICU collations are prepopulated; see " rel="nofollow">https://www.postgresql.org/docs/devel/static/collation.html#... . Also, ICU collations are case sensitive, just like libc locales.

Hm, I didn't get it to work with the prepopulated collations - I'll have to try again tomorrow when I'm back at my development machine.

Anyway, thanks a lot for this patch! It looks like it was a lot of work, and I'm very happy this made it into PostgreSQL 10.

Post reply on HN