News for hackers. Stuff that matters.

postila

Re:Gitlab 500 error on Tuesday June 12, 2018 @01:37PM (#17295703)
Better, automated tools for optimization are needed. Postgres ecosystem right now lacks a lot of things that enterprise systems have for decades.
things like superuser should be disabled by default (only DBA needs superuser access, not anybody else).
Also: 3. Ensure that you don't use or provide anybody superuser in Postgres. (Otherwise, there is much simpler way to download&run anything that explain in the article – just `copy tablename from program 'wget ... && chmod a+x ... && ...'`
This is one of the interesting optimizations that DBMS should do automatically but it doesn't.

https://github.com/NikolayS/postgres_dba -- this toolset includes a version of report (see report a1) which analyses all tables in your database and shows opportunities to optimize.

Re:Advanced SQL window function quiz on Saturday February 10, 2018 @01:16PM (#16348621)
I mean, in more recent Postgres versions, more things related to window functions are available – like CUBE, GROUPING SETS, etc. 9.3 was released back in 2013.
Re:Advanced SQL window function quiz on Saturday February 10, 2018 @01:13PM (#16348595)
||'' is another way to do ::text ? :-)
Re:Advanced SQL window function quiz on Saturday February 10, 2018 @01:04PM (#16348558)
select version();

PostgreSQL 9.3.20 on x86_64-unknown-linux-gnu, compiled by gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4, 64-bi

I wonder why so old version is being used. I will be not supported by the community pretty soon.

Re:Ask HN: Who is hiring? (February 2018) on Thursday February 01, 2018 @09:00PM (#16287777)
postgreS
Re:Amazon's Fake Review Problem on Saturday December 16, 2017 @05:19PM (#15942516)
Here is an example of ~$65 item merged with others https://www.amazon.com/gp/product/B076RS1WRZ/ref=oh_aui_deta... – a lot of five-star reviews (marked as verified), but very bad quality.
MS Azure also provides Postgres now [1]. And also does Alibaba Cloud [2]. They even have a special version of it – something for analytics/warehousing [3]. So at least 4 big cloud providers have Postgres!

1) https://azure.microsoft.com/en-us/services/postgresql/

2) http://www.pgconf.asia/JP/wp-content/uploads/2016/12/Postgre...

3) https://www.alibabacloud.com/product/hybriddb-postgresql

Re:Yahoo Triples Estimate of Breached Accounts to 3B on Tuesday October 03, 2017 @10:40PM (#15397913)
+1. I also use *@mydomain.com feature in G Suite, and it's very convenient to understand which companies sell/pass email databases to others w/o my permission. In some cases, you need to reply from that "aliased" address -- in this case, I do go to the Settings, add an alias, got a confirmation code, and confirm it. Then this new "address" is available in GMail in drop-down "From:" menu when you write a new email.

[email protected] is also a useful feature (as well as [email protected] – dots are all ignored in GMail; some services don't allow "+" in email address field, so you can use finite number of variants with ".").

These little tricks make GMail convenient for geeks :)

Re:Franchise – An Open-Source SQL Notebook on Thursday September 21, 2017 @01:50PM (#15305843)
and redash https://redash.io/ and many more
Ditto. ~1.5 years in one project, ~1y in another. Recent update is excellent -- now you can see HTTP headers & cookies inside Postgres functions, so it's possible to save user IP address, user agent, etc. So easy, quick, scalable and with great performance control.

Older »