PSQL needs a better way of outputting bytea to binary files
Have you ever tried to output a file stored in a bytea column from PostgreSQL using PSQL? It ain't pretty. Andrew Dunstan has a couple of examples of doing this in his article Clever Trick Challenge....
View ArticleRendering PostGIS Raster graphics with LibreOffice Base Reports
I was excited to learn from Pasha Golub's blog LibreOffice Base 3.5 now comes packaged with native PostgreSQL driver so no separate configuration is required. The connection string syntax follows the...
View ArticlePostGIS 64-bit for Windows it's coming
UPDATE We have PostGIS 2.0.0 available for both 32-bit and 64-bit windows PostgreSQL. We are wroking on getting the installers out This past week has been very nerve racking but also exciting. We have...
View ArticleODBC Foreign Data wrapper - odbc_fdw on windows
One of the new features in PostgreSQL 9.1 that we've been meaning to try is the new foreign data wrapper support. Now that we are in compile mode gearing up for releasing PostGIS 2.0.0 for windows...
View ArticlePostGIS 2.0.0 is out
Yap that's right. PostGIS 2.0.0 is finally out the door. It took us Two years and 2 months, a super long incubation for us, but we did it and just in time for Javier's Where 2.0 2.0 Talk.. Paul has...
View ArticleMoving PostGIS to another schema with Extensions
One of the things people have complained about for quite some time is that postgis is installed in the public schema by default and it's difficult to move after the fact. With now over 900 functions...
View ArticleODBC Foreign Data wrapper to query SQL Server on Window - Part 2
As promised in our prior article: ODBC Foreign Data wrapper on windows, we'll demonstrate how to query SQL Server using the Foreign Data Wrapper. This we are testing on windows. As far as querying SQL...
View ArticleFile FDW Family: Part 1 file_fdw
Last time we demonstrated how to use the ODBC Foreign Data wrapper, this time we'll continue our journey into Foreign Data Wrapper land by demonstrating what I'll call the File FDW family of Foreign...
View ArticleFile FDW Family: Part 2 file_textarray_fdw Foreign Data Wrapper
Last time we demonstrated how to query delimited text files using the fdw_file that comes pacakged with PostgreSQL 9.1+, this time we'll continue our journey into Flat file querying Foreign Data...
View ArticlePostgreSQL 9.2 pg_dump enhancements
One of the things I'm excited about in PostgreSQL 9.2 are the new pg_dump section - pre-data, data, and post-data options and the exclude-table-data option. Andrew Dunstan blogged about this briefly...
View ArticlePostgreSQL 9.2 Native JSON type support
One new welcome feature in PostgreSQL 9.2 is the native json support and companion row_as_json and array_as_json functions. PostGIS also has a json function for outputting geographies and geometries...
View ArticlePostgreSQL 9.2: Preserving column names of subqueries
There is another new feature in 9.2 that doesn't get much press, and probably because it's hard to explain. It is a pretty useful feature if you are working with the new json type or the existing...
View ArticleFinding contiguous primary keys
I recently had the need to figure out which ranges of my keys were contiguously numbered. The related exercise is finding gaps in data as well. Reasons might be because you need to determine what data...
View ArticleContiguous Ranges of primary keys: a more cross platform and faster approach
In last article Finding Contiguous primary keys we detailed one of many ways of finding continuous ranges in data, but the approach would only work on higher-end dbs like Oracle 11G, SQL Server 2012,...
View ArticleWorking with Timezones
UPDATE TO UPDATE: Bruce Momjian suggested replacing the dynamic set local sql with set_config. We've revised further to incorporate this suggestion. That got rid of our last pet peeve about this...
View ArticlePostgreSQL: Up and Running book officially out
Our new book PostgreSQL: Up and Running is officially out. It's available in hard-copy and e-Book version directly from O'Reilly, Safari Books Online and available from Amazon in Kindle store. It...
View ArticleForeign Data Wrap (FDW) Text Array, hstore, and Jagged Arrays
As we discussed in file_textarray_fdw Foreign Data Wrapper, Andrew Dunstan's text array foreign data wrapper works great for bringing in a delimited file and not having to worry about the column names...
View ArticleBuilding on MingW and deploying on VC compiled PostgreSQL Why and Why not
We are the windows package maintainers of PostGIS. We build these packages using MingW chain of tools. For other packages we fancy that do not come packaged with the windows VC++ builds, we also build...
View ArticleBuilding PLV8JS and PLCoffee for Windows using MingW64 w64-w32
As mentioned in our previous article Building on MingW deploying on VC we often build on MingW and deploy on Windows servers running EDB distributed VC PostgreSQL builds for extensions we want that...
View ArticlePLV8JS and PLCoffee Part 1: Upserting
Today's modern web application workflow in its simplest form looks something like this: Get dataset as JSON object usually using yet another JSON query object to pass the request using a javascript...
View Article
More Pages to Explore .....