Re: transaction safety

Поиск
Список
Период
Сортировка
От DaVinci
Тема Re: transaction safety
Дата
Msg-id 20010213134740.A13686@fangorn.net
обсуждение исходный текст
Ответ на RE: transaction safety  (fabrizio.ermini@sysdat.it)
Ответы How to limit the size of pg_log ??
Re: transaction safety
Список pgsql-general
On Tue, Feb 13, 2001 at 12:25:59PM +0100, fabrizio.ermini@sysdat.it wrote:
> On 13 Feb 2001, at 10:58, Michael Ansley wrote:
>
> > OK, someone want to answer this?  I have always been under the impression
> > that Postgres would not block under these circumstances, however, this is
> > clearly blocking, for no apparently good reason.
> >
> > I have just run a test on my own server, and this blocking does not happen.
> > Both sessions run independently until each has committed, then displaying
> > information from the other insert, but definitely not blocking.  It works
> > exactly as I would have expected.
> >
>
> This thing has ignited my curiosity, too. I've tested it on a server
> and I've obtained your same results, no blocking, as should be.

 8| That sounds terrible for me. I don know what can be the problem. Any
 volunteer for using my script to create the Database and experimenting with
 insert?... :)

 Here is (as preambule) the table in which I make insertions:

-------------------------------------------------------
create table aviso (
    n�mero        serial primary key,
    fecha        timestamp default now(),
    procedencia    int2 references procedencia,
    l�nea        int2 references l�nea,
    empresa        int2 references empresa,
    urgente        bool    default 'f',
    externo        bool    default 'f',
    aceptado    bool,
    tmr            bool    default 'f',
    detalle        text
);
create index avi_fecha_ndx on aviso (fecha);
create index avi_procedencia_ndx on aviso (procedencia);
create index avi_linea_ndx on aviso (l�nea);
create index avi_empresa_ndx on aviso (empresa);
create index avi_urgente_ndx on aviso (urgente);
create index avi_aceptado_ndx on aviso (aceptado);
create index avi_tmr_ndx on aviso (tmr);
create index avi_externo_ndx on aviso (externo);
----------------------------------------------------------

 I make following insert from psql:

 # insert into aviso(procedencia,l�nea,empresa,detalle) values
    (1,1,1,'Example');

 referencial integrity to "procedencia", "l�nea" and "empresa" works fine.
 Those tables have convenient values.

 If you have any idea about this problem I'll thank your comments.

 Greets.

                                                         David

В списке pgsql-general по дате отправления:

Предыдущее
От: "Richard Huxton"
Дата:
Сообщение: Re: [araman@india-today.com: locking problem with JDBC (suspicion)]
Следующее
От: Anand Raman
Дата:
Сообщение: Re: [araman@india-today.com: locking problem with JDBC (suspicion)]