Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1trimu-0083bq-7L for pgsql-general@arkaria.postgresql.org; Mon, 10 Mar 2025 19:27:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1trims-00H29t-Kq for pgsql-general@arkaria.postgresql.org; Mon, 10 Mar 2025 19:27:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1trims-00H29U-9X for pgsql-general@lists.postgresql.org; Mon, 10 Mar 2025 19:27:42 +0000 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1trimq-0025Jh-0K for pgsql-general@lists.postgresql.org; Mon, 10 Mar 2025 19:27:41 +0000 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5dca468c5e4so8936529a12.1 for ; Mon, 10 Mar 2025 12:27:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=peoplecall-com.20230601.gappssmtp.com; s=20230601; t=1741634859; x=1742239659; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Z6pAanuf/ok5m5dQTp82YITY9AS9LIYVgKL4c5z/oSg=; b=fA9zPrS4ww/Q8JsoiIK9fbI/KcRYk9VpDYfIJQEmFNzFBB03ndMNiuI2xNsbbIsIju prdW2DRE00r3kIFDiG3yK8MXzVuO4iLImsZ0vBb+FThPU0mi1EUQLVnttcfkD4sJMSPh P/U+d6PSjipW2SLFYPeMTyNY67rmbWL7gpLwR9P1bvtMjbFdiSA7vAXnNM9GfyxfKEM8 58LQMhrezRHETb5GRvKhwlFmh6b0zJjd6O4jt/Hj6wWR2/HgiUdPXQkvpbmVdTJzIqO8 lwwmOLUHxCc6LoIGXBOkkwzuiGUbIZFiunxGzifsyJxb57XWkw5cFjgTAmCBmbvyLeGZ +E9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741634859; x=1742239659; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Z6pAanuf/ok5m5dQTp82YITY9AS9LIYVgKL4c5z/oSg=; b=vrIMEXXMQs0Mby8dDPmNSQneafmcjOyyDCwJvUk+xd1ktCJMw9HWSfO4yBuXRs4Mss Hpmwbvmm8+C7iW5klePTdr4phaq2yQpcxDAXNmEmUMXomfUAY8zMrgR+LSRIQkyvuhI7 oM7Gs3Jx6SV+OG4MXCUApzTQZsg0A+KCD30EE2vxyMX4kZySnfZr+//mKHaL3Xz9p6ui g72oXE2hKtlo6p3iuiOtF9BejqbYFNovcRTQ+74/05zwSxW0rDk0ikBZKl3LUfRHshZD f/pO5786nuFbwgwWZwwOeTF7fDyt84A7/tdZBU3m2csZIw+ELQ7sqy0qO+XS1H7kGrK1 rwqQ== X-Gm-Message-State: AOJu0YwaGw1z2aUMyW7ffSUQ2X+v6oZNzCE4NhPozU5I2ecklJ6fl5eu KnWQQaR+lPg52DGeuof3kmLoY1n+9PBXtKV+/5ZbNKXJWEnBiXIDNVRisRGDp4t6o246boZhVEh +IAZJWg8+4bkLUx+kSuNr40ilXu2oWN6rgpJ0imKN5L4alGc= X-Gm-Gg: ASbGncuw6w6sbf16WmgcmRrYokgDe6LoXfHbY0qtO0R4nzQofY2QCNm8u3Md6g/H5nk uCA/nFgFkUtnJocAE5GngY1b2k+icedcmf+cjJsgiQH9QY43EtAX8ppwnwxzbcInOGBaizK0FU/ zCOeebGHmOCgqf3HSZC4ROE+g8iJY= X-Google-Smtp-Source: AGHT+IFL2xKPx4Syo/c/2hhrt6IbrYzpQkj5tjoI0BsIGIeP05QIUHbvAQZcH/qS17rfWX0ICb9FDD/g1VZCioFq47Q= X-Received: by 2002:a05:6402:239a:b0:5e6:1c91:fb6f with SMTP id 4fb4d7f45d1cf-5e61c91fe7amr9185039a12.20.1741634858908; Mon, 10 Mar 2025 12:27:38 -0700 (PDT) MIME-Version: 1.0 References: <84A5765B-1D3C-485B-B852-99D63D53963E@meddatainc.com> <4835994a-aecf-4fef-bb75-9a4c5f6e0ffd@aklaver.com> In-Reply-To: From: Francisco Olarte Date: Mon, 10 Mar 2025 20:27:02 +0100 X-Gm-Features: AQ5f1Jr-XsyabeFIA6SSPNuSp6yYOMuPRE06Nf0SqhvEUCdax3-alxikb9A5Jc0 Message-ID: Subject: Re: Creating files with testdata To: H Cc: pgsql-general@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 10 Mar 2025 at 20:18, H wrote: > There are tables referencing each other using randomly generated IDs, ie. those IDs are not known until after the parent table row is inserted. Random? Then they CAN collide. ;-> Do the IDs need to be random or are they just the default value? I've encountered a similar problem with sequences and have bypassed it by using explicit values into the test data, i.e.m, inserting an invoice with id 1000 followed by its lines with IDs 100010, 100011, .... and then setting start_values for the sequences at 99999999. This helped me a lot in a debugging. You could do the same depending on what domain your random ids are on. Francisco Olarte.