Re: Umstieg von MySQL auf Oracle: Wo lagen die Probleme?



Uwe Weber schrob:

> Andreas Seltenreich wrote:
>
>> Uwe Weber schrob:
>>> -Partitionierung von Tabellen und Indizes
>>
>> Partielle Indizes gab's IIRC schon als Postgres noch kein SQL konnte,
>> und Tabellenpartitionierung nennt sich Constraint Exclusion und kann
>> in der aktuellen Beta (Release wahrscheinlich noch in diesem Jahr)
>> bewundert werden.
>
> Schönes Feature, sieht aber nach Lektüre von
> http://lists.pgfoundry.org/pipermail/bizgres-general/2005-July/000168.html
> für mich eher aus wie Check constraints.

Diese Constraints werden in den Kind-Tabellen so gesetzt, daß durch
die Vererbung eine Klasseneinteilung stattfindet, was eine beliebige
Partitionierung der Elter-Tabelle ermöglicht. Die eigentliche Neuheit
daran ist nun, daß der Optimizer die Vorteile dieser Konstellation
auch entsprechend nutzt.

> Man müsste jetzt mal ein paar Pläne nebeneinander halten, um zu
> sehen, ob es wirklich gleich ist.

Im letzten Absatz wird verglichen:
--8<---------------cut here---------------start------------->8---
Oracle's partitioning allows either LIST or RANGE partitioning. The
new PostgreSQL CE feature is considerably more flexible than Oracle's
declarative Partitioning syntax, and is achieved without adding
non-standard SQL extensions.
--8<---------------cut here---------------end--------------->8---

Hmm, aber wenn ich das so lese: Der Artikel läßt doch die Frage offen,
wie die Daten beim INSERT elegant verteilt werden können, oder? Wenn
man nun zu den naheliegenden RULEs greifen würde, wäre das ja dann
auch wieder non-standard.

> BTW: Kann postgres sowas wie timed statistics und das entsprechende
> Tracing?

Hmm, sind "timed statistics" bei Oracle so 'ne Art
Statement-Profiling? Dann könnte das hier passen:
<http://www.postgresql.org/docs/8.0/static/runtime-config.html#RUNTIME-CONFIG-STATISTICS>
<http://www.postgresql.org/docs/8.0/static/runtime-config.html#RUNTIME-CONFIG-LOGGING>

Gruß
Andreas
.



Relevant Pages

  • Re: Check constraints not being replicated properly
    ... I DO want to enforce the constraints at the ... DML during replication because of the partitioned view requirements. ... We have a date_created partitioning ... How can I make sure the snapshot does not create the tables on the ...
    (microsoft.public.sqlserver.replication)
  • Re: Check constraints not being replicated properly
    ... Do you want this constraint enforced on the subscriber when the DML is ... occurring due to a replication process? ... Please post your schema of the table with the constraints and I'll show you ... We have a date_created partitioning column in ...
    (microsoft.public.sqlserver.replication)
  • Re: Monkeys typing Shakespeare
    ... In the constraints of your continuous closed set you are no ... This is no different from chosing the point of partitioning randomly, and has the same difficult - there are only a finite number of points of partition that can individually be specified in a finite time, so if it's a reasonable requirement that you be able to specify, or equivalently, know, the point of partitioning, then your choice cannot be random. ...
    (rec.puzzles)
  • Re: Monkeys typing Shakespeare
    ... In the constraints of your continuous closed set you are no ... partitioning is your random number. ... But only a finite number of the numbers in that infinite series can individually be specified in a finite time, so it's highly debatable whether you're naming them, as distinct from defining a process for assigning names to them. ...
    (rec.puzzles)