Grokbase
x

Raymond O'Donnell (r...@iol.ie)

Profile | Posts (223)

User Information

Display Name:Raymond O'Donnell
Partial Email Address:r...@iol.ie
Posts:
223 total
1 in PostgreSQL - Admin
5 in PostgreSQL - Advocacy
194 in PostgreSQL - General
25 in PostgreSQL - ODBC

5 Most Recent

All Posts
1) Raymond O'Donnell Re: [GENERAL] Using sequences in SQL text files
| +1 vote
You're looking for the nextval() function - look it up in the docs. Ray. Raymond O'Donnell,...
PostgreSQL - General
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On 19/02/2008 15:43, HHB wrote:

> How to use a sequence in such text files?

You're looking for the nextval() function - look it up in the docs.

Ray.

---------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
[email protected: r...@iol.ie]
---------------------------------------------------------------

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org/
2) Raymond O'Donnell Re: [GENERAL] Auto incrementing primary keys
| +1 vote
Actually, that isn't quite right - just looked at the docs for CREATE SEQUENCE, and the default...
PostgreSQL - General
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On 18/02/2008 17:46, Raymond O'Donnell wrote:

> Well, that depends on your usage, so only you can answer that. According
> to the docs, "serial" creates an integer column, which will give you
> 2147483647 values - how quickly will you use that lot up? If you think
> you will run out, by all means use bigserial.

Actually, that isn't quite right - just looked at the docs for CREATE
SEQUENCE, and the default maximum value is 2^63-1.

Ray.

---------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
[email protected: r...@iol.ie]
---------------------------------------------------------------

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings
3) Raymond O'Donnell Re: [GENERAL] Auto incrementing primary keys
| +1 vote
Well, that depends on your usage, so only you can answer that. According to the docs, "serial"...
PostgreSQL - General
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On 18/02/2008 13:14, pgsql_user wrote:
> so wouldnt I run out of ids one day, if there are lot of failed insert
> statements, lets say for every successful insert there are 50
> unsuccessful inserts, so ids would be 1, 50, 100, and once I have
> thousands of rows, I will run out of IDs ? should I use bigserial
> instead ?

Well, that depends on your usage, so only you can answer that. According
to the docs, "serial" creates an integer column,  which will give you 
2147483647 values - how quickly will you use that lot up? If you think
you will run out, by all means use bigserial.

Ray.

---------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
[email protected: r...@iol.ie]
---------------------------------------------------------------

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
match
4) Raymond O'Donnell Re: [GENERAL] msvcr80.dll and PostgreSQL 8.3 under Windows XP
| +1 vote
There's at least one website out there that offers DLLs for download, but I have no idea whether...
PostgreSQL - General
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
There's at least one website out there that offers DLLs for download,
but I have no idea whether this is legal or not. Can anyone comment?

Ray.


---------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
[email protected: r...@iol.ie]
---------------------------------------------------------------

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings
5) Raymond O'Donnell Re: [GENERAL] loading files into tables
| +1 vote
You're probably looking for the COPY command:...
PostgreSQL - General
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On 04/02/2008 15:29, Pau Marc Munoz Torres wrote:

> I'm trying to do something similar in postgresql, can someone help me?

You're probably looking for the COPY command:

http://www.postgresql.org/docs/8.3/static/sql-copy.html

Ray.


---------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
[email protected: r...@iol.ie]
---------------------------------------------------------------

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [email protected: majo...@postgresql.org] so that your
message can get through to the mailing list cleanly

spacer
Profile | Posts (223)
Home > People > Raymond O'Donnell