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 1te0f5-00BK6g-KU for pgsql-novice@arkaria.postgresql.org; Fri, 31 Jan 2025 23:43:00 +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 1te0f2-003MVP-5Q for pgsql-novice@arkaria.postgresql.org; Fri, 31 Jan 2025 23:42:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1te0f1-003MVH-Rz for pgsql-novice@lists.postgresql.org; Fri, 31 Jan 2025 23:42:55 +0000 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1te0ey-002c42-2g for pgsql-novice@postgresql.org; Fri, 31 Jan 2025 23:42:55 +0000 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-3862d16b4f5so1597011f8f.0 for ; Fri, 31 Jan 2025 15:42:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1738366972; x=1738971772; darn=postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=JdbsS4IJrYiDCqy52gM81o23HaHk9xagXtTA0T+hzoc=; b=cwvlNf0nSk7LBIC7mYIoa5GOJRGn5XsfbhK+PKWJ7pL499rDAD71JtbL/i5GvrELOC /tjQCs1sE1xA5VnY+X7EBLOxmT5mnDQlUC/DhBAPtlDLDtUmJFb8qdWiBRB9XyBf25mJ AETwoHrjcBJBKDuRJkoSlg4qTeX9pLJYv3JJOUAIAUbUss/jryDlXcIMxKCorMUGU5xs zK94epEYXaNGCnY5n8SZASBe1Isrutmb+6KyvOUJpUdECMQooTGioj7GmYPLPo6U245r Nc61p4mv5M68jVOwI3Ia8WYxu/cLfe5QqIgf5RApjSmpMbnqSrQzexepSlHYPS9CsZDP 5yZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738366972; x=1738971772; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=JdbsS4IJrYiDCqy52gM81o23HaHk9xagXtTA0T+hzoc=; b=kHiwBLqaSeyLHUGDxit8pRQruQYKsYP1wgo245W0eIq7MfTfml/eoXvJPI2at/kP+v y4xIncS54biXwGALs7sTAEN/e9XCZbyiT0giDk1fvweUVF397XYnyj4X79vAMSWpySiU +GgtKlocPO7ecTl+INvA3YZZ1GZL5ogD13w/a1F8QSE0KJN1jljrewyd0gljyseuuSzF meHoiVjlWKFnhxy0aR0vsbxylxf57dIkzFijFA4f3oMXP6pKbknjVcO8ANRoNatmBudh wt7eqSAJ0dEeWUCDGKygEgexMpJEqZXeBUbf8vx1odMvBqLnK1X/YmynXMKdbgXQIYHa vWlQ== X-Forwarded-Encrypted: i=1; AJvYcCUN9dcK25UY6u7pkRxXc8d3XR3KzzK8j+svbTYBxlmHam54ZH05Xn6tnCPzkau3MarxFb8i7Vzu8TY7Xy8=@postgresql.org X-Gm-Message-State: AOJu0YzfQMVeQObv5O0Ffzxu6FLKECIeMqW8ntKobAqt79wGV3wu9KYm L59yw/7cNpktyLNSMU7lw75aKy9EElRaURHVQEVoXKDkI8ZAYBMlD3H0lLD6ES4= X-Gm-Gg: ASbGnctFQSbG9rHruCzx98aQv3T9xwJkjmLXfwnn/6TMS+RphDTpSwwJwqNx5p8cKcc 0lbeTken+Ayfsigj+8OgG3mZpnI/M3msWWGpH5Zc+AcjDKSTOEcwFE9XPfGReh+kwB9zNtArxFa gSBZCtRsyQk7k68o2vPJENEddPlaHUryABei/yBtjaqKf/FC6W0z5dcTbJZAY6Cg/qgzQr1xXFN PpjsKv3J7T1/XVazOZ2mblN471A1uVstrJGtCCMlawsx/exh1kLLGDrwIjvcD2tZBvRhQhU7efs ZmGNIF6IlYjQ/WdNR/sIsAD/j7T57pNBk+s5UA== X-Google-Smtp-Source: AGHT+IEQW/xgZgLkUPunlOey3+UHD54bHHqRSAgsHnziYqydCa1cdi98IV0xUspfL7lo1Np24EFW2A== X-Received: by 2002:a5d:5f44:0:b0:38a:4184:14ec with SMTP id ffacd0b85a97d-38c5a956db2mr8631124f8f.1.1738366972157; Fri, 31 Jan 2025 15:42:52 -0800 (PST) Received: from localhost.localdomain ([2001:871:255:9ae3:244c:7859:2776:53b7]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38c5c102e19sm5950116f8f.36.2025.01.31.15.42.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jan 2025 15:42:51 -0800 (PST) Message-ID: Subject: Re: Regarding setClob and getclobval methods in PostgreSQL From: Laurenz Albe To: Rajyalakshmi Sareddy , "pgsql-novice@postgresql.org" Date: Sat, 01 Feb 2025 00:42:50 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.54.3 (3.54.3-1.fc41) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 2025-01-31 at 11:35 +0000, Rajyalakshmi Sareddy wrote: > We are currently migrating the code from oracle to postgresql and using j= dbc > jar ispostgresql-42.7.4.jar. But for code migration, we are getting error= s > like org.postgresql.jdbc.PgPreparedStatement.setClob(int, Reader) is not = yet > implemented. > =C2=A0 > Could you please confirm on setClob and getclobval methods are implemente= d > in postgresql-42.7.4 jar. =C2=A0If not implemented, could you please sugg= est > with alternate methods. I can only confirm that that method is *not* implemented. You would have to use setClob(int parameterIndex, Clob x) instead. But really, *do not* use any of the getClob and setClob methods, because th= ey use Large Objects in PostgreSQL, and you should avoid Large Objects. Use setBinaryStream(int parameterIndex, InputStream x) instead, so that you can use "bytea" in the database. By the way, there is a specific mailing list for the JDBC driver, where you may get better answers. Yours, Laurenz Albe