Hi,
let's assume i have a self referencing hierarchical table like this one:
CREATE TABLE test
(name text,id serial primary key,parent_id integer
references test)
insert into test (name,id,parent_id) values
('root1',1,NULL),('root2',2,NULL),('root1sub1',3,1),('root1sub2',4,1),('root
2sub1',5,2),
On 23/lug/08, at 11:28, Pavel Stehule wrote:
Hello
2008/7/23 Maximilian Tyrtania <[EMAIL PROTECTED]>:
Hi there, just a quickie: Is there a way to select all default
values of a
given table? Something like "Select Default values from sometable" ?
Unfortunately this syntax doesn't seem to be
Giorgio Valoti wrote:
postgres=# insert into f(a,b) values(default, default) returning *;
It seems that you can’t use the same syntax with function calls:
select function(default,default);
gives a syntax error. Is it expected?
Um - there is no default value for a function.
--
Richard Hux
Hai all,
when i was going through the Postgresql documents, i came across a section
which tells about the TIME ZONE settings
what i understood from the document is, based on the value given in this
conf file postgres will add or subtract the displacement hours to the system
time assuming that th
Emi Lu wrote:
Thank you. I am quite sure that I will not use "delete" now.
Now I a question about how efficient between
(1) truncate a big table (with 200, 000)
vacuum it (optional?)
drop primary key
load new data
load primary key
vacuum it
(2) drop table (this table has no
A. Kretschmer wrote:
am Thu, dem 24.07.2008, um 10:01:46 -0400 mailte Emi Lu folgendes:
A. Kretschmer wrote:
am Thu, dem 24.07.2008, um 9:47:48 -0400 mailte Emi Lu folgendes:
I found a link for SQL Server, it applies to PostgreSQL 8.0.x as well?
http://vadivel.blogspot.com/2004/06/delete-vs
On Thu, Jul 24, 2008 at 7:56 AM, Anoop G <[EMAIL PROTECTED]> wrote:
> Hai all,
>
> when i was going through the Postgresql documents, i came across a section
> which tells about the TIME ZONE settings
>
>
> what i understood from the document is, based on the value given in this
> conf file postgre
Good morning,
If I remember correctly, "delete" does not release space, while truncate
will.
I have an option now
(1) Use object creator(with create/drop permission which I do not need
in my cronjob script) to truncate table1(>100,000 recs) records
(2) Use user1(has r/w only) to delete fro
am Thu, dem 24.07.2008, um 9:47:48 -0400 mailte Emi Lu folgendes:
> I found a link for SQL Server, it applies to PostgreSQL 8.0.x as well?
> http://vadivel.blogspot.com/2004/06/delete-vs-truncate-statement.html
Not realy, for instance, pg can rollback a truncate, and a sequence are
not reset.
The truncate is more fast to delete, the truncate command not scan the table
http://www.postgresql.org/docs/8.3/static/sql-truncate.html
--- On Thu, 7/24/08, A. Kretschmer <[EMAIL PROTECTED]> wrote:
> From: A. Kretschmer <[EMAIL PROTECTED]>
> Subject: Re: [SQL] truncate vs. delete
> To: pgsql-s
I found a link for SQL Server, it applies to PostgreSQL 8.0.x as well?
http://vadivel.blogspot.com/2004/06/delete-vs-truncate-statement.html
Emi Lu wrote:
Good morning,
If I remember correctly, "delete" does not release space, while truncate
will.
I have an option now
(1) Use object cre
am Thu, dem 24.07.2008, um 10:01:46 -0400 mailte Emi Lu folgendes:
> A. Kretschmer wrote:
> >am Thu, dem 24.07.2008, um 9:47:48 -0400 mailte Emi Lu folgendes:
> >>I found a link for SQL Server, it applies to PostgreSQL 8.0.x as well?
> >>http://vadivel.blogspot.com/2004/06/delete-vs-truncate-sta
A. Kretschmer wrote:
am Thu, dem 24.07.2008, um 9:47:48 -0400 mailte Emi Lu folgendes:
I found a link for SQL Server, it applies to PostgreSQL 8.0.x as well?
http://vadivel.blogspot.com/2004/06/delete-vs-truncate-statement.html
Not realy, for instance, pg can rollback a truncate, and a seque
n Thu, Jul 24, 2008 at 7:53 AM, A. Kretschmer
<[EMAIL PROTECTED]> wrote:
> am Thu, dem 24.07.2008, um 9:47:48 -0400 mailte Emi Lu folgendes:
>> I found a link for SQL Server, it applies to PostgreSQL 8.0.x as well?
>> http://vadivel.blogspot.com/2004/06/delete-vs-truncate-statement.html
>
> Not r
On 24/lug/08, at 12:42, Richard Huxton wrote:
Giorgio Valoti wrote:
postgres=# insert into f(a,b) values(default, default) returning *;
It seems that you can’t use the same syntax with function calls:
select function(default,default);
gives a syntax error. Is it expected?
Um - there is no d
On Thu, Jul 24, 2008 at 12:35 PM, Giorgio Valoti <[EMAIL PROTECTED]> wrote:
>> Um - there is no default value for a function.
>
> Without this "feature" you have to overload
> the function arguments.
You could pass a casted null to the function. The would eliminate
function overloading. Then in
16 matches
Mail list logo