Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hO5ya-0002lO-7V for pgsql-general@arkaria.postgresql.org; Tue, 07 May 2019 19:42:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hO5yX-0004pT-9B for pgsql-general@arkaria.postgresql.org; Tue, 07 May 2019 19:42:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hO5yW-0004nh-Nn for pgsql-general@lists.postgresql.org; Tue, 07 May 2019 19:42:04 +0000 Received: from sonic302-22.consmr.mail.ne1.yahoo.com ([66.163.186.148]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hO5yT-0007x4-Cg for pgsql-general@lists.postgresql.org; Tue, 07 May 2019 19:42:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1557258117; bh=S7HB/rl594XwA5MMC1rsCfL+sH8bgVtn+nm+SH37DuM=; h=Date:From:Cc:In-Reply-To:References:Subject:From:Subject; b=NAcA4cvzVWo1DUjaw5dIuzx0hA/Lnyz/zJ4hxndj/MGlGHqOFJwcC1euGow/7vRRdghY47fhWHIsu6GgWNdiZAiguj+54wRBQU9XxIvYRnnL8ALQx9JwkZCveGoHd0k/9bDwPKrdWybRW2udu3nvVJEGUMtmhc5esf/2zTpIk+pgQx+zwRe6wupo678EEUga8nQGGwIkmbD9tgPH9BUG8erjYVMAt/pBoqeYAR8e2ljUnq+H3aDdpeoys9trOUoPaoL9Ly72xdx6mZNhSOQajjvDNtBJ/e1NKr+2dt1omg2Qy9Zx3HCMsqDYFz3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9bO98Onu_jLhO iqPNdf98fktoFuzUp3gqz.03VwWdEAcTddTnG4JNt7KhdFj.9YSFA9gCY6i0XJZzYoc1A_aJobTE p34JApgz2v7a3BGjdbfBNG7TVk33ih8ezlme9TloO6f6wj8oMRE9FeneIEYZD9pyr9cjethOVOr5 zBvcLYGvwqQkydbKWBPkwANN29nuh Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ne1.yahoo.com with HTTP; Tue, 7 May 2019 19:41:57 +0000 Date: Tue, 7 May 2019 19:41:56 +0000 (UTC) From: Brent Wood Cc: pgsql-general Message-ID: <240053033.2824795.1557258116655@mail.yahoo.com> In-Reply-To: References: <1632746998.783748.1557170911532@mail.yahoo.com> <1413119262.835563.1557175309774@mail.yahoo.com> <1344807418.834581.1557175492967@mail.yahoo.com> Subject: Re: Postgres for SQL Server users MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2824794_1445657715.1557258116653" X-Mailer: WebService/1.1.13583 YMailNorrin Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0 Content-Length: 10626 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_2824794_1445657715.1557258116653 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I have not used SS for spatial data, but I don't have a Postgres database = without Postgis installed. The OSGEO ecosystem and synergies with other FOS= S GIS tools is fantastic. And it does not stop with the Postgis extension. For time series data (anyt= hing from fleet management to sensor data) Postgres has the (new) Timescale= DB extension. I ran this very effectively with a 600,000,000 record databas= e of sensor readings from a research vessel - on a $400 laptop (with an SSD= ) for testing/prototyping. The sensor data was stored in Timescaledb Hypert= ables & the location data in Postgis geometry columns in those tables. Sign= ificantly better performance than native Postgres. Also consider language support for database functions... pl/R supports some= very nice capabilities, especially supporting websites. Instead if running= a Postgres query to return the data to plot via the web page, or storing s= tatic plots in your CMS that need updating when you get new data, you can u= se Postgres functions in pl/R to render the plot of the data in a file, and= return the name of the file. The web site does no rendering, just invokes = the SQL & displays the file that is returned. So the DB can return the data= and/or the graphic. Back up your database & back up your functions. This p= aradigm can work very effectively... Generally, the FOSS ecosystem around Postgres offers an incredible array of= tools and capabilities that I don't think any other db - FOSS or not - can= provide. I have had limited exposure to Oracle, SQL Server, Sybase, Empres= s, Teradata, Netezza, DB2, Sqlite/Spatialite, Interbase & Informix. Of thes= e, Postgres & Sqlite3 (which one depends on use cases) are all I use these = days. On Tuesday, May 7, 2019, 5:36:00 PM GMT+12, Tony Shelver wrote: =20 =20 I have to agree on the geospatial (GIS) features.=C2=A0=C2=A0=20 I converted from SQL Server to Postgresql for our extended tracking databas= e.=C2=A0 The SS geospatial feature set doesn't seem nearly as robust or com= plete or perfoirmant as that supplied by PostGIS.=20 The PostGIS ecosystem of open source / 3rd party tools is also far bigger, = for anything to do with mapping.=C2=A0 Openstreetmaps.org stores their worl= d dataset on Postgresql / PostGIS, and there a ton of mostly open source-ba= sed tools and organizations that work with it or any other PostGIS data to = provide a complete GIS solution. My first sS implementation had me backing out of storing geographic points = in the relevant SQL Server datatype as the performance hit during loading w= as just too big.=C2=A0 Doing the same thing in Postgresql / PostGIS is nard= ly noticeable. Another feature in Postgres is that you are not restricted to just plpgsql = as an internal procedural language.=20 I am not an expert, but it also seems far easier to create, install and wor= k with major extensions to Postgresql than SQL Server.=C2=A0 I found instal= ling the GIS featureset in SS to be a bit of a pain back oin the day..=C2= =A0=20 On Tue, 7 May 2019 at 00:53, Michel Pelletier = wrote: On Mon, May 6, 2019 at 2:49 PM Adam Brusselback = wrote: I think the main "gotcha" when I moved from SQL Server to Postgres was I di= dn't even realize the amount of in-line t-sql I would use to just get stuff= done for ad-hoc analysis. Postgres doesn't have a good way to emulate this= . DO blocks cannot return resultsets, so short of creating a function and d= ropping it, it's not possible to get the same workflow. Just ruminating here, and this has probably already been discussed in the p= ast, but I've always wanted something like a 'SELECT DO [LANGUAGE ...] RETU= RNS rettype | TABLE (...) $$ RETURN [NEXT | QUERY] ... $$; but haven't had = any serious problem with creating/dropping functions like you mentioned. -Michel=C2=A0 The lack of GUI tooling was also a huge "whoa" moment for me, which I still= grapple with. =20 ------=_Part_2824794_1445657715.1557258116653 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I have not used SS for spatial data, but I don't have a Postgr= es database without Postgis installed. The OSGEO ecosystem and synergies wi= th other FOSS GIS tools is fantastic.

And it does = not stop with the Postgis extension. For time series data (anything from fl= eet management to sensor data) Postgres has the (new) TimescaleDB extension= . I ran this very effectively with a 600,000,000 record database of sensor = readings from a research vessel - on a $400 laptop (with an SSD) for testin= g/prototyping. The sensor data was stored in Timescaledb Hypertables & = the location data in Postgis geometry columns in those tables. Significantl= y better performance than native Postgres.

Also co= nsider language support for database functions... pl/R supports some very n= ice capabilities, especially supporting websites. Instead if running a Post= gres query to return the data to plot via the web page, or storing static p= lots in your CMS that need updating when you get new data, you can use Post= gres functions in pl/R to render the plot of the data in a file, and return= the name of the file. The web site does no rendering, just invokes the SQL= & displays the file that is returned. So the DB can return the data an= d/or the graphic. Back up your database & back up your functions. This = paradigm can work very effectively...

Generally, t= he FOSS ecosystem around Postgres offers an incredible array of tools and c= apabilities that I don't think any other db - FOSS or not - can provide. I = have had limited exposure to Oracle, SQL Server, Sybase, Empress, Teradata,= Netezza, DB2, Sqlite/Spatialite, Interbase & Informix. Of these, Postg= res & Sqlite3 (which one depends on use cases) are all I use these days= .


=20
=20
On Tuesday, May 7, 2019, 5:36:00 PM GMT+12, Tony Shelve= r <tshelver@gmail.com> wrote:


I have to agree on the geospatial (GIS) features.  
I converted from SQL Server to Postgresql for ou= r extended tracking database.  The SS geospatial feature set doesn't s= eem nearly as robust or complete or perfoirmant as that supplied by PostGIS= .
The PostGIS ecosystem of open source / 3rd = party tools is also far bigger, for anything to do with mapping.  Open= streetmaps.org stores their world dataset on Postgresql / PostGIS, and ther= e a ton of mostly open source-based tools and organizations that work with = it or any other PostGIS data to provide a complete GIS solution.
=
My first sS implementation had me backing out= of storing geographic points in the relevant SQL Server datatype as the pe= rformance hit during loading was just too big.  Doing the same thing i= n Postgresql / PostGIS is nardly noticeable.

<= /div>
Another feature in Postgres is that you are not restricted to jus= t plpgsql as an internal procedural language.

I am not an expert, but it also seems far ea= sier to create, install and work with major extensions to Postgresql than S= QL Server.  I found installing the GIS featureset in SS to be a bit of= a pain back oin the day.. 

On Tue, 7= May 2019 at 00:53, Michel Pelletier <pelletier.mic= hel@gmail.com> wrote:
On Mon, May 6, 2019 at 2:49 PM Adam Brusselback <adambrusselback@gmail.com> wrote:
<= div class=3D"ydp65050731yiv3879791811gmail_quote">
I think = the main "gotcha" when I moved from SQL Server to Postgres was I didn't eve= n realize the amount of in-line t-sql I would use to just get stuff done fo= r ad-hoc analysis. Postgres doesn't have a good way to emulate this. DO blo= cks cannot return resultsets, so short of creating a function and dropping = it, it's not possible to get the same workflow.

Just ruminating here, and this has probably alrea= dy been discussed in the past, but I've always wanted something like a 'SEL= ECT DO [LANGUAGE ...] RETURNS rettype | TABLE (...) $$ RETURN [NEXT | QUERY= ] ... $$; but haven't had any serious problem with creating/dropping functi= ons like you mentioned.

-Michel
 
The lack of GUI tooling was also a= huge "whoa" moment for me, which I still grapple with.
------=_Part_2824794_1445657715.1557258116653--