﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by Joe Celko  / Stairway to SQL Dialects Level 2: Postgres / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 21 May 2013 03:54:13 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Stairway to SQL Dialects Level 2: Postgres</title><link>http://www.sqlservercentral.com/Forums/Topic1297934-1604-1.aspx</link><description>actually, porting FROM commercial DB solution to PostgreSQL is not uncommon if you have a product and you want to lower its overall cost.</description><pubDate>Wed, 14 Nov 2012 07:29:29 GMT</pubDate><dc:creator>Milos Babic</dc:creator></item><item><title>RE: Stairway to SQL Dialects Level 2: Postgres</title><link>http://www.sqlservercentral.com/Forums/Topic1297934-1604-1.aspx</link><description>Interesting article. I've only been working with databases for about 10 years, but I have only seen porting to SQL Server from Postgres.  Never the other way around.  It's rare for a company to go away from the Microsoft platform once they've already made a major investment which generally involves multiple products and support agreements.</description><pubDate>Wed, 14 Nov 2012 07:09:34 GMT</pubDate><dc:creator>Meow Now</dc:creator></item><item><title>RE: Stairway to SQL Dialects Level 2: Postgres</title><link>http://www.sqlservercentral.com/Forums/Topic1297934-1604-1.aspx</link><description>SQL Server's "READ_COMMITTED_SNAPSHOT" isolation level overcomes different concurrency control and it is closest to Postgres' MVCC.</description><pubDate>Wed, 14 Nov 2012 04:12:16 GMT</pubDate><dc:creator>Milos Babic</dc:creator></item><item><title>RE: Stairway to SQL Dialects Level 2: Postgres</title><link>http://www.sqlservercentral.com/Forums/Topic1297934-1604-1.aspx</link><description>Just adding a couple more corrections, after what Richard noted earlier.Postgres also has a BIGINT data type which is exactly 8 bytes wide.SQL Server's IDENTIY column may be better mapped to SERIAL pseudo data type, which is a combination of INT DEFAULT NEXTVAL(). There's also BIGSERIAL which user BIGINT under the covers.Postgres' BOOLEAN data type [i]does[/i] support NULL values.[quote]You cannot create a temp table with column declarations but only with a query[/quote]I am not sure what you implied by the above statement, but one can create a temporary table in Postgres without having to use a query at the same time:[code]CREATE TEMPORARY TABLE test( a INT );[/code]- Gurjeet</description><pubDate>Mon, 24 Sep 2012 15:09:40 GMT</pubDate><dc:creator>GurjeetSingh</dc:creator></item><item><title>RE: Stairway to SQL Dialects Level 2: Postgres</title><link>http://www.sqlservercentral.com/Forums/Topic1297934-1604-1.aspx</link><description>[quote] Other Data Types...    Does not support NULL values.[/quote]I think this statement may need clarification:[code="sql"]Microsoft Windows XP [Version 5.1.2600](C) Copyright 1985-2001 Microsoft Corp.C:\Documents and Settings\rbroersma&amp;gt;psqlPassword:psql (9.2.0)WARNING: Console code page (437) differs from Windows code page (1252)         8-bit characters might not work correctly. See psql reference         page "Notes for Windows users" for details.Type "help" for help.rbroersma=&amp;gt; SELECT CAST( TRUE  AS Boolean ) AS "True", CAST( FALSE AS Boolean) AS "False", CAST( NULL AS Boolean) AS "Null"; True | False | Null------+-------+------ t    | f     |(1 row)rbroersma=&amp;gt;[/code]Also, [quote] Temp Tables... You cannot create a temp table with column declarations but only with a query. ...Here is the syntax:CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE table_name    [ (column_name [, ...] ) ] [ [ WITH | WITHOUT ] OIDS ]    AS query DML in Postgres [/quote][code="sql"]rbroersma=&amp;gt; CREATE TEMPORARY TABLE Testtable ( foo INTEGER, bar CHARACTER VARYING, baz TIMESTAMP WITHOUT TIME ZONE );CREATE TABLErbroersma=&amp;gt;[/code]</description><pubDate>Fri, 21 Sep 2012 13:26:06 GMT</pubDate><dc:creator>rbroersma</dc:creator></item><item><title>Stairway to SQL Dialects Level 2: Postgres</title><link>http://www.sqlservercentral.com/Forums/Topic1297934-1604-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/articles/Stairway+Series/89991/"&gt;Stairway to SQL Dialects Level 2: Postgres&lt;/A&gt;[/B]</description><pubDate>Thu, 10 May 2012 08:43:43 GMT</pubDate><dc:creator>CELKO</dc:creator></item></channel></rss>