Tag Archive
The following is a list of all entries tagged with greenplum:
Horizontal Paging of Greenplum or Postgres Queries
Filed in Data Munging, January 26, 2010, 5:58 pmWhen using gpsql or pgsql to query greenplum or postgres respectively, query results which exceed the width of your term will wrap in a very annoying fashion. To get horizontal paging, set the environmental variable PAGER:
export PAGER=’less -RSFX’
then either in your psql or gpsql session, or in your .psqlrc file,
\pset pager always
Note that if [...]
Querying Postgres or Greenplum From R on a Mac, Installation Instructions
Filed in Data Munging, R, R Tip, January 21, 2010, 2:19 pmNB: this works on 64b versions of R; I tested it with the R64 app with R version 2.10.1 on Snow Leopard
Step by step instructions for talking to Postgres or Greenplum:
install macports
install postgres; I used 8.4
sudo port install postgresql84
in a shell, create an environmental variable PG_CONFIG pointing to the pg_config binary installed [...]
Querying Databases From R on a Mac
Filed in Data Munging, R, R Tip, January 11, 2010, 5:28 pmI use a mac, currently running OS 10.6 / Snow Leopard, and I’d like to query our greenplum / postgres database from R. This used to work with R 2.9, but I unfortunately had to upgrade R, and R 2.10 on the mac is a 64 bit app. So, I want to use [...]
Querying Postgres or Greenplum from R on a Mac
Filed in Data Munging, R, R Tip, December 31, 2009, 9:00 amSo, I’m using snow leopard, and I want to query our postgres / greenplum database.
First things first: I’m familiar with the RODBC package on CRAN. This installs fine, since it’s a binary package. I also installed the ODBC Administrator app that you have to download from apple here . Now all [...]
Querying Databases in R, on Mac OS
Filed in Uncategorized, September 7, 2009, 12:06 amUnfortunately, it appears with the recent release of 10.6 / Snow Leopard Apple has removed the ODBC Administrator Tool from the OS. It can still be downloaded from Apple.
Querying Databases in R
Filed in Data Munging, R, R Tip, August 14, 2009, 9:00 amOne of the first things you’ll want to do in R is set it up to talk to databases. The easiest way to do this is using ODBC, via package RODBC.
To get the package, run
> install.packages(RODBC)
Once you have RODBC installed, you call it in R as follows. But it’s very simple: a bit [...]